Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created October 28, 2025 16:25
Show Gist options
  • Save Whateverable/6d795493929dee51680c08af753b2495 to your computer and use it in GitHub Desktop.
Save Whateverable/6d795493929dee51680c08af753b2495 to your computer and use it in GitHub Desktop.
evalable6
raku -e 'my @a = <a b c d>; for @a.kv -> $k,$v { say @a[ 0..^$k], @a[$k], @a[$k+1..*] };'
(exit code 1)
===SORRY!=== Error while compiling /tmp/QEaKARPxTH
Two terms in a row
at /tmp/QEaKARPxTH:1
------> raku -e<HERE> 'my @a = <a b c d>; for @a.kv -> $k,$v
expecting any of:
infix
infix stopper
postfix
statement end
statement modifier
statement modifier loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment