TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Apr 2017 |
SwiftSwift Version | 3.0.2 |
SPMSupports SPM | ✓ |
Maintained by Suyeol Jeon.
Total | 869 |
Week | 0 |
Month | 0 |
Apps | 7 |
Test Targets | 2 |
Stars | 10 |
Watchers | 1 |
Forks | 1 |
Issues | 0 |
Contributors | 2 |
Pull Requests | 0 |
Files | 2 |
LOCLines of Code | 43 |
Not yet implemented functions in Swift. This library is tiny but you must be looking for somebody to make this open sourced library
Dictionary.map()
and Dictionary.flatMap()
which returns Dictionary
.
let dict: [String: Int] = ["a": 1, "b": 2, "c": 3]
let result = dict.map { key, value in
return (key, value * 2)
}
print(result) // ["a": 2, "b": 4, "c": 6]
filterNil()
on Collection
and Dictionary
.
let dict: [String: Any?] = [
"some": 123,
"none": nil,
]
let result = dict.filterNil()
print(result) // ["some": 123]
Using CocoaPods:
pod 'Yet'
Using Carthage:
github "devxoul/Yet" ~> 0.2
Using Swift Package Manager:
let package = Package(
name: "MyAwesomeProject",
targets: [],
dependencies: [
.Package(url: "https://github.com/devxoul/Yet.git", majorVersion: 0)
]
)
Any discussions and pull requests are welcomed
Use $ swift generate-xcodeproj
to generate Xcode project for development.
Yet is under MIT license. See the LICENSE for more info.