Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
yoz-y
on July 21, 2015
|
parent
|
context
|
favorite
| on:
Monads in JavaScript
You can write a Swift function with curried parameters.
func addMultiple(#a: Int)(b: Int)(c: Int) -> Int { return a + b + c }
It can not auto-curry parameters, but at worst you can wrap functions in their curried couter-parts.
dllthomas
on July 21, 2015
[–]
Interesting. Does addMultiple(7) bind a or c?
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: