Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created January 16, 2020 17:35
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/de06e769d960bf4ed7044f63c1caecd7 to your computer and use it in GitHub Desktop.
Save Whateverable/de06e769d960bf4ed7044f63c1caecd7 to your computer and use it in GitHub Desktop.
evalable6
my @a = [1,2,3,4,5];@a.map({if *==3 {say "I want to stop"}})
(exit code 1)
===SORRY!=== Error while compiling /tmp/_o_8wW5i1l
Malformed double closure; WhateverCode is already a closure without curlies, so either remove the curlies or use valid parameter syntax instead of *
at /tmp/_o_8wW5i1l:1
------> ;@a.map({if *==3 {say "I want to stop"}}⏏)
expecting any of:
horizontal whitespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment