3 ms·
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-cu
by yoz-y 11y ago
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 11y agoInteresting. Does addMultiple(7) bind a or c?