Instantly share code, notes, and snippets.

@DNNX / README.md Secret
Created Apr 16, 2017

Embed
What would you like to do?
excellent-2
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