Latest 0.1.0
Homepage https://github.com/WilliamZang/ZLazyList
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

ZLazyList is just a functional programming test.
To show what is lazily calculate.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

You can create a list like this:

ZLazyList *list1 = [[ZLazyList alloc] initWithArray:@[@1, @2, @3]];

Then use filter: or map: add to this list

ZLazyList *list2 = [list1 map:^id(NSNumber *value) {
            return @(value.integerValue * 2);
        }];
NSLog(@"%@", list2[2]);

You will found the map block is only be call once.

Installation

ZLazyList is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "ZLazyList"

Author

臧成威, [email protected]

License

ZLazyList is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ZLazyList",
    "version": "0.1.0",
    "summary": "ZLazyList is just a functional programming test.",
    "description": "ZLazyList is just a functional programming test.nTo show what is lazily calculateu3002",
    "homepage": "https://github.com/WilliamZang/ZLazyList",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "WilliamZang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/WilliamZang/ZLazyList.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ZLazyList/Classes/**/*"
}

Pin It on Pinterest

Share This