Open jcubic opened 10 years ago
curry: true will make all methods curried
curry: true
var o = Monadic({ foo: function(a, b) { return a+b; } }, {curry: true});
so you can do
['Foo', 'Bar', 'Baz'].map(o.foo('Lorem ')); // ==> ['Lorem Foo', 'Lorem Bar', 'Lorem Baz']
Curry can be set by default and make it unable when option set to false.
If curry will be introduce false to not make real monad need to be an option too like fake: true
false
fake: true
curry: true
will make all methods curriedso you can do
Curry can be set by default and make it unable when option set to false.