Flatten instance method reference that resolved to SE-0042.
let f: (String) -> (String) -> Bool = String.hasPrefix
// function is curried
f("Hello")("He") // => true
let __f: (String, String) -> Bool = flatten(f)
// function is flattend
__f("Hello", "He") // => true
Only up to 20 arguments are supported.
Yusuke Hosonuma / tobi462@gmail.com / @tobi462
Flatten is available under the MIT license. See the LICENSE file for more info.