https://github.com/devxoul/immutable
Missing non-mutating functions in Swift
https://github.com/devxoul/immutable
functions immutable swift
Last synced: 10 months ago
JSON representation
Missing non-mutating functions in Swift
- Host: GitHub
- URL: https://github.com/devxoul/immutable
- Owner: devxoul
- License: mit
- Created: 2017-03-03T09:21:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-04-26T11:38:38.000Z (about 4 years ago)
- Last Synced: 2025-09-03T05:49:42.533Z (10 months ago)
- Topics: functions, immutable, swift
- Language: Swift
- Homepage:
- Size: 18.6 KB
- Stars: 18
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Immutable

[](https://travis-ci.org/devxoul/Immutable)
[](https://cocoapods.org/pods/Immutable)
Missing immutable functions in Swift. You must be looking for somebody to make this library 😛
## Features
* Non-mutating `appending()`, `inserting()`, `removing()` functions in `Collection`
* `map()` and `flatMap()` for `Dictionary`
* `filterNil()` for `Collection` and `Dictionary`
## Installation
* **Using CocoaPods**:
```ruby
pod 'Immutable'
```
* **Using Carthage**:
```
github "devxoul/Immutable"
```
* **Using Swift Package Manager**:
```swift
let package = Package(
name: "MyAwesomeProject",
targets: [],
dependencies: [
.Package(url: "https://github.com/devxoul/Immutable.git", majorVersion: 0)
]
)
```
## Requirements
* Swift 3
## Contribution
Any discussions and pull requests are welcomed 💖
Use `$ swift generate-xcodeproj` to generate Xcode project for development.
## License
Immutable is under MIT license. See the [LICENSE](LICENSE) for more info.