Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created September 30, 2017 12:08
Show Gist options
  • Save Whateverable/d0651456b85a8179d0aa4d1c2b7f87a8 to your computer and use it in GitHub Desktop.
Save Whateverable/d0651456b85a8179d0aa4d1c2b7f87a8 to your computer and use it in GitHub Desktop.
committable6
4b02b8aadcb4^,4b02b8aadcb4 with (Seq.new: class :: does Iterator { method pull-one { say "pull"; $++ < 3 ?? $++ !! IterationEnd } }.new,).map(|*).skip { .sink; .say }
¦«4b02b8aadcb4^»:
pull
pull
pull
pull
This Seq has already been iterated, and its values consumed
(you might solve this by adding .cache on usages of the Seq, or
by assigning the Seq into an array)
in block <unit> at /tmp/Z6EFGumA5G line 1
«exit code = 1»
¦«4b02b8a»:
pull
This Seq has already been iterated, and its values consumed
(you might solve this by adding .cache on usages of the Seq, or
by assigning the Seq into an array)
in block <unit> at /tmp/Z6EFGumA5G line 1
pull
pull
pull «exit code = 1»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment