Skip to content

Instantly share code, notes, and snippets.

@AlexDaniel
Created December 4, 2019 04:58
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 AlexDaniel/46495f595cac5de74026b27bbb93ab94 to your computer and use it in GitHub Desktop.
Save AlexDaniel/46495f595cac5de74026b27bbb93ab94 to your computer and use it in GitHub Desktop.
Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()
Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).^can(‘tail()’)[0]
Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.^can(‘new).tail()’)[0]
Seq.^can(‘new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()’)[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail.cando(\())[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 }.cando(\(}.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10.cando(\(} }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only {.cando(\(10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only.cando(\({ 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method.cando(\(count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- };.cando(\(method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n--.cando(\(}; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one {.cando(\($!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one.cando(\({ $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method.cando(\(skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd };.cando(\(method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd.cando(\(}; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or.cando(\(IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42.cando(\(or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and.cando(\(42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n--.cando(\(and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!";.cando(\($!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say.cando(\("pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method pull-one.cando(\({say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10; method.cando(\(pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n = 10;.cando(\(method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n =.cando(\(10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has $!n.cando(\(= 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator { has.cando(\($!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator {.cando(\(has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does Iterator.cando(\({ has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class :: does.cando(\(Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class ::.cando(\(does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new(class.cando(\(:: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail()))[0]
&Seq.new.cando(\(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new).tail())[0]
(Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new)).^can(‘tail’).map(*.cando(\((Seq.new(class :: does Iterator { has $!n = 10; method pull-one {say "pulling!"; $!n-- and 42 or IterationEnd }; method skip-one { $!n-- }; method count-only { 10 } }.new)), |\()))).first(*.so)[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment