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
toArray = (d) -> [].slice.call(d) | |
currify = (fn, args, remaining)-> | |
if remaining < 1 | |
return fn.apply(null, args) | |
-> | |
currify(fn, args.slice(0, fn.length - 1).concat(toArray(arguments)), remaining - arguments.length) |
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
defmodule MyApp.Color do | |
@moduledoc """ | |
Just an example source of the values | |
""" | |
def list do | |
~w(red green blue)a | |
end | |