Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created February 21, 2020 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/f4db6fbc7e8479d47508f8fca63308da to your computer and use it in GitHub Desktop.
Save Whateverable/f4db6fbc7e8479d47508f8fca63308da to your computer and use it in GitHub Desktop.
evalable6
my &foo = method(Int:D $a --> Bool) { $a %% 2 }; say 43.&foo;
(exit code 1)
===SORRY!=== Error while compiling /tmp/fUIJV4FBoX
Unable to parse expression in argument list; couldn't find final ')' (corresponding starter was at line 1)
at /tmp/fUIJV4FBoX:1
------> my &foo = method(Int:D⏏ $a --> Bool) { $a %% 2 }; say 43.&foo;
expecting any of:
infix
infix stopper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment