Flatten

master

Flatten method reference that resolved to SE-0042.
YusukeHosonuma/Flatten

Flatten

CocoaPods SPM Compatible License Twitter

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

Limitation

Only up to 20 arguments are supported.

Author

Yusuke Hosonuma / tobi462@gmail.com / @tobi462

License

Flatten is available under the MIT license. See the LICENSE file for more info.

Description

  • Swift Tools 5.1.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri Sep 02 2022 06:48:42 GMT-0500 (GMT-05:00)