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 / [email protected] / @tobi462
Flatten is available under the MIT license. See the LICENSE file for more info.
link |
Stars: 3 |
Last commit: 1 year ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics