Yet 0.2.0

Yet 0.2.0

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

Maintained by Suyeol Jeon.


Downloads

Total117
Week42
Month117

Installs

Apps4
Apps WeekApps This Week 4
Test Targets2
Test WeekTests This week 1
powered by Segment

GitHub

Stars6
Watchers1
Forks0
Issues0
Contributors1
Pull Requests0

Code

Files2
SizeIntegration Size 16 kb
LOCLines of Code 43


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.