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 Oct 18 2024 16:40:38 GMT-0900 (Hawaii-Aleutian Daylight Time)