Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created December 11, 2019 03:17
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/6d10cd5fa2fd2a581f0a088439270059 to your computer and use it in GitHub Desktop.
Save Whateverable/6d10cd5fa2fd2a581f0a088439270059 to your computer and use it in GitHub Desktop.
evalable6
my @stuff = (1..14); my $start = 0; my $end = @stuff.elems - 5; my @conds = (* >= $start); @conds.push: * < $end if $end; say .toggle(:off, |@conds)
(exit code 1)
Cannot resolve caller toggle(Any:U: WhateverCode:D, WhateverCode:D, :off); none of these signatures match:
(Any:D: Callable:D \condition, :$off!, *%_)
(Any:D: Callable:D \condition, *%_)
(Any:D: *@conditions, :$off, *%_)
in block <unit> at /tmp/U02Cy8HkYv line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment