Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created July 7, 2020 14:59
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/a004045f988ba7acbe595f7aa77b8f89 to your computer and use it in GitHub Desktop.
Save Whateverable/a004045f988ba7acbe595f7aa77b8f89 to your computer and use it in GitHub Desktop.
committable6
HEAD sub here-we-get-a-seq($seq) { say ‘all elements of the seq:’; .say for $seq }; my $s = <a b c>.words; say $s.head; here-we-get-a-seq $s
¦«HEAD(98c7e51)»:
a
The iterator of this Seq is already in use/consumed by another Seq
(you might solve this by adding .cache on usages of the Seq, or
by assigning the Seq into an array)
in sub here-we-get-a-seq at /tmp/CTCLKcLD4t line 1
in block <unit> at /tmp/CTCLKcLD4t line 1
all elements of the seq:
«exit code = 1»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment