-
Notifications
You must be signed in to change notification settings - Fork 32
Conversation
Probably the most useful partial application function for prime
|
||
function flow(width, height, time){ return width * height * time } | ||
var flowThroughPipe = partial(volume, 5, 6) | ||
vol(10) // 300 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vol
--> flowThroughPipe
Right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, thanks 😃
lol Classic™ On Fri, Jul 5, 2013 at 9:12 AM, Arian Stolwijk notifications@github.comwrote:
|
|
Wouldn't it be more useful if curry supported an optional length property (defaulting to fn.length)? The api would be: var curried = curry(someVariableArgsFn, 2)(someArg)
curried(secondArg) -> result also useful: var curried = curry(someVariableArgsFn, 2)
curried(someArg, secondArg) -> result |
New modules: