Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created September 30, 2017 12:15
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/c3c03a20aaab432b06fa1534e7d1f787 to your computer and use it in GitHub Desktop.
Save Whateverable/c3c03a20aaab432b06fa1534e7d1f787 to your computer and use it in GitHub Desktop.
committable6
2017.07,HEAD with (Seq.new: class :: does Iterator { method pull-one { note "pull"; $++ < 3 ?? $++ !! IterationEnd } }.new,).map(|*).skip { .sink; .say }
¦«2017.07,HEAD(9bbfed1)»:
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/DjApAwIDa5 line 1
«exit code = 1»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment