Giter VIP home page Giter VIP logo

sinq's People

Contributors

norcalaussie avatar nverinaud avatar slazyk avatar tonyarnold avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sinq's Issues

Playground Problems

Hi,

Thanks for providing this valuable library.

I've tried using SINQ in an Xcode6-Beta5 playground, but find that all but .toArray() cause the playground to lock up. Could anyone confirm?

Daniel

Update README for CocoaPods 0.36

CocoaPods 0.36 is now out of beta & rc and the official 0.36.0 version with Swift & Framework support has been released 2 days ago.

(Don't forget to consult the guides and CocoaPods blog if you need help, we recently added a "guide for pod authors" dedicated for Swift pods)

SINQ doesn't compile under Xcode 7.3

Compiling the library under Xcode 7.3 (Beta 5) gives the following error:

SINQ.swift:27:20: Cannot invoke initializer for type 'AnySequence<>' with an argument list of type '(S)'
SINQ.swift:27:20: Overloads for 'AnySequence<
>' exist with these partially matching parameter lists: (S), (() -> G)

Given the iOS 9.3 release is days away this should probably be fixed immediately as apps using SINQ will start to break

lazy() vs sinq()

In Swift Beta 4 Apple added lazy() and LazySequence, LazyBidirectionalCollection, LazyForwardCollection and LazyRandomAccessCollection which seem similar in purpose to what sinq() and SinqSequence are.

The new lazy types provide lazy chainable .map .filter .reverse .array and subscript.

sinq(1...100).filter{ $0 % 2 == 0 }.map{ %0 % 3 } // me
lazy(1...100).filter{ $0 % 2 == 0 }.map{ %0 % 3 } // apple

It might be a good idea to refactor SINQ so it extends those types. Or at least maybe borrow from them the design of splitting into specialised cases for: sequences, {forward, bidirectional, random access} collections.

Swift Beta 4 replaced some lazy functions with eager ones

As of Beta 4 some functions that were lazy are now eager, notably Swift.map and Swift.filter. Their use should be removed from the implementation.

...but they also added lazy(), which can be used as follows

lazy(1...100).filter{ $0 % 2 == 0 }.map{ %0 % 3 }

looks familiar :) ?

sinq(1...100).filter{ $0 % 2 == 0 }.map{ %0 % 3 }

Support for Swift 2.3 / 3.0

Any ETA on support for Swift 2.3/3.0?

Right now when you include the pod you have to go through a manual conversion process of the code to the new syntax. If code-level breakages are a must perhaps we could keep a separate branch for the Swift 2.2 codebase and move the new one to 2.3/3.0.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.