Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
def double(n) n * 2 end
increment = -> n { n + 1 }
5
|> double # Method
|> increment # Proc
|> to_s(2) # self.to_s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.