If I have a local function defined as
def different?(foo) do
...
then trying to capture the function as "&different?/1" results in the following error:
invalid args for &, expected an expression in the format of &Mod.fun/arity, &local/arity or a capture containing at least one argument as &1, got: different?()
Changing the name and capture to just "different" (no ?) works fine.