Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Interesting. Does addMultiple(7) bind a or c?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: