Swift Function Currying

Russ Bishop: Now forget all that stuff we just discussed because Swift supports automatic function currying. Just separate the parameters inside their own parens and you’re done: func takeFive<T:IntegerArithmeticType>(a:T)(b:T)(c:T)(d:T)(e:T) -> T { return a + b + c + d + e } […] A caller might ask us for a function that runs queries … Continue reading Swift Function Currying