bigMOTOR/swift-lens
The concept of functional Lenses in Swift
Operators:
- lenses composition; ~ - set value; |> - piping.
Example of usage:
user = user |> User.idLens *~ newId
user = user |> (User.nameLens * Name.firstNameLens) *~ "Joel"SPM Install
- Swift Package Manager by url: https://github.com/bigMOTOR/swift-lens.git
Contributing
- Something wrong or you need anything else? Please open an issue or make a Pull Request.
- Pull requests are welcome.
License
swift-lens is available under the MIT license. See the LICENSE file for more info.
Package Metadata
Repository: bigMOTOR/swift-lens
Stars: 1
Forks: 0
Open issues: 0
Default branch: master
Primary language: swift
License: MIT
README: README.md