Latest 0.1.0
Homepage https://github.com/JanNash/WeakRefCollections
License MIT
Platforms ios 8.0
Authors

TravisCI build status: master

A lightweight ensemble of nifty Swift collections that support weak references to their elements and provide some other supposedly helpful tiny interface additions.

Latest podspec

{
    "name": "WeakRefCollections",
    "version": "0.1.0",
    "summary": "A lightweight ensemble of nifty Swift Collections that support weak references to their elements.",
    "description": "Unfortunately, Swift does not (yet?) have built-in (native) Collections (As in 'the Collection protocol'n-> Arrays, Sets, Dictionaries) that support weak references to their elements. Sure, there's NSMapTablenand NSHashTable. Have you ever tried to work with these? for-in iteration? Nope. .forEach()? Nope.nNifty functional programming with higher order functions like .map(), .reduce() and .filter()? Nope.nnBy using .allObjects or resorting to NSEnumerators, you can achieve these functionalities, too, you might say...nBut you're using Swift now. You don't want to have to do that, do you? You want lightweight, readable syntax,nno annoying hacks and workarounds. Maybe you're even writing a server application, so you don't want to havento import Foundation.nnThis framework is (will be) a humble attempt to provide Collections that properly support weak referencesnto their elements. Not only a pseudo-Set (NSHashTable) and a convoluted Dictionary (NSMapTable).nAn Array, a Set, a Dictionary, a bidirectional Dictionary and the protocol-conformances one wouldnexpect from those types.",
    "homepage": "https://github.com/JanNash/WeakRefCollections",
    "license": "MIT",
    "authors": {
        "Jan Nash": "[email protected]"
    },
    "social_media_url": "http://twitter.com/JanPNash",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/JanNash/WeakRefCollections.git",
        "tag": "v0.1.0"
    },
    "source_files": "WeakRefCollections/Sources/**/*.swift",
    "pushed_with_swift_version": "3.1"
}

Pin It on Pinterest

Share This