Skip to content

Instantly share code, notes, and snippets.

@joker1007
Created December 26, 2018 11:08
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 joker1007/dff3798b55459ed00271b476c9be93f6 to your computer and use it in GitHub Desktop.
Save joker1007/dff3798b55459ed00271b476c9be93f6 to your computer and use it in GitHub Desktop.
ruby-2.6
class Symbol
alias :& :to_proc
end
pp ((1..)%2).each.lazy.map(&(:succ.& >> :succ.& >> :to_s.&)).take(10).force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment