Skip to content

Instantly share code, notes, and snippets.


DNNX/ Secret

Created Apr 16, 2017
What would you like to do?
duplicate = Array.method(:new).curry(2).(2)
duplicate.(20) # => [20, 20]
duplicate.(:x) # => [:x, :x]
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.