Swift implementations for function currying.
For more info on function currying in Swift, please refer to this blog post
Note that we're aggressive about pushing
master forward along with new
versions of Swift. Therefore, we highly recommend against pointing at
and instead using one of the releases we've provided.
Here is the current Swift compatibility breakdown:
| Swift Version | Curry Version | | ------------- | ------------- | | 3.X | 3.X | | 2.2, 2.3 | 2.X |
Follow the current instructions in Carthage's README for up to date installation instructions.
Add the following to your Podfile:
You will also need to make sure you're opting into using frameworks:
pod install with CocoaPods 0.36 or newer.
Curry is Copyright (c) 2015 thoughtbot, inc. It is free software, and may be redistributed under the terms specified in the LICENSE file.
Curry is maintained and funded by thoughtbot, inc. The names and logos for thoughtbot are trademarks of thoughtbot, inc.
We love open source software! See our other projects or look at our product case studies and hire us to help build your iOS app. We also have a collection of resources for learning iOS development at Upcase.
v3.0.0 - Oct 12, 2016
Official Swift 3.0 release!
Thanks @eliperkins, @gfontenot, @sharplet, @jshier, and @ikesyo
v2.3.3 - Jul 22, 2016
This release records the migration attempt for Xcode 8 so that it doesn't throw needless warnings in the project.
v2.3.2 - Jul 8, 2016
This version adds explicit support for Swift 2.3 projects in Xcode 8. A future release will add explicit support for Swift 3.0.
v2.3.1 - Jun 17, 2016
As a part of 2.3, we (I) totally forgot that Swift 3.0 no longer ignores the external label on the initial argument. That's my bad. 2.3.1 fixes that by re-ignoring that external label so that we get back to API compatibility.
v2.3.0 - Jun 14, 2016
This release introduces Swift 3.0 support. The only change is that the types in the curried return value are wrapped in parens as required by Swift 3.0. This change is backwards compatible with Swift 2.X.