Yet 0.2.0

Yet 0.2.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2017
SwiftSwift Version 3.0.2
SPMSupports SPM

Maintained by Suyeol Jeon.



Yet 0.2.0

  • By
  • Suyeol Jeon

Not yet implemented functions in Swift. This library is tiny but you must be looking for somebody to make this open sourced library 😛

Features

  • 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]

Installation

  • 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)
      ]
    )

Requirements

  • Swift 3

Contribution

Any discussions and pull requests are welcomed 💖

Use $ swift generate-xcodeproj to generate Xcode project for development.

License

Yet is under MIT license. See the LICENSE for more info.