Swiftpack.co - YusukeHosonuma/Flatten as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by YusukeHosonuma.
YusukeHosonuma/Flatten 0.1.0
Flatten method reference that resolved to SE-0042.
⭐️ 3
🕓 1 year ago
.package(url: "https://github.com/YusukeHosonuma/Flatten.git", from: "0.1.0")

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 / [email protected] / @tobi462

License

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

GitHub

link
Stars: 3
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Related Packages

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics