Giter Site home page Giter Site logo

collections's Introduction

libCollections

libCollections is an Objective-C library that brings methods from Smalltalk's collection protocol and Ruby's Enumerable mixin to Objective-C projects. libCollections adds these methods as categories to the Foundation framework's collections classes. (Not all of Ruby's Enumerable methods are implemented, but some of them aren't really relevant or useful and probably won't be.)

What does it run on?

libCollections uses C blocks extensively. I've only tested it on 10.6, but it should work on 10.5 as well. Currently it compiles as a dynamic library on OS X, and as a static library for iOS.

Can I use it now?

Maybe. The planned functionality is implemented for NSArray, NSSet, and NSDictionary, but it hasn't been extensively tested (to be honest, the unit tests are kind of pathetic), nor has the code been written as "tightly" or efficiently as it could be. It hasn't been tested in an iOS app at all. This is an early in-development version at the moment, so use at your own risk.

Who created this?

libCollections is written by Michael Dippery. I had been meaning to create such a library for a while (I like the collect: and inject:into: methods from Smalltalk and Ruby, and miss them in Objective-C), but I was motivated to finally sit down and write the code by a post on Stack Overflow.

collections's People

Contributors

mdippery avatar

Stargazers

 avatar

Watchers

 avatar

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.