Learn Haskell already, you script kiddie. http://learnyouahaskell.com/
-
-
Save DNNX/85986f9fa25fc99a3823a64854a59119 to your computer and use it in GitHub Desktop.
excellent-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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