> {ok, C2} = smerl:add_func(foo, bar, fun() -> 3 + A end), Sorry -- example bug. This is the right line: {ok, C2} = smerl:add_func(C1, bar, fun() -> 3 + A end),