Dictionary value as function with parameter