Latest 1.0
Homepage https://github.com/igormatyushkin014/Flexible
License MIT
Platforms ios 9.0
Authors

Flexible








At a Glance

Flexible is a tool that simplifies work with arrays in Swift.

How To Get Started

  • Copy content of Source folder to your project.

or

  • Use Flexible cocoapod

Requirements

  • iOS 9 and later
  • Xcode 9 and later
  • Swift 4.1

Usage

Filtering array is much easier with Flexible:

let sourceArray = [
    1, 2, 3, 4, 5, 6, 7, 8, 9, 10
]

let result = array.flx
    .take(.last(count: 4))         // Take last 4 elements
    .mapped { "value = ($0)" }    // Map Int element to String value
    .where { $0 < 8 }              // Filter source elements

print(result) // ["value = 4", "value = 5", "value = 6", "value = 7"]

License

Flexible is available under the Apache 2.0 license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Flexible",
    "version": "1.0",
    "summary": "Smart arrays implemented in Swift",
    "description": "Provides developer with set of tools that simplify work with arrays in Swift.",
    "homepage": "https://github.com/igormatyushkin014/Flexible",
    "screenshots": "https://github.com/igormatyushkin014/Flexible/raw/master/Images/logo_2048_600.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Igor Matyushkin": "[email protected]"
    },
    "social_media_url": "https://twitter.com/imatyushkin1",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/igormatyushkin014/Flexible.git",
        "tag": "1.0"
    },
    "source_files": [
        "Source",
        "Source/**/*"
    ],
    "swift_version": "4.0"
}

Pin It on Pinterest

Share This