Latest 1.0.0
Homepage https://github.com/noahsark769/DefaultDict
License MIT
Platforms ios 8.0
Frameworks Foundation
Authors

CI Status
Version
License
Platform

Usage

import DefaultDict

let d = DefaultDict<String: String>(value: "default")
print(d["something"]) // prints "default"
d["something"] = "other"
print(d["something"]) // prints "other"

Installation

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

pod 'DefaultDict', '~> 1.0.0'

Development and contributing

Contributions are welcome! Please open an issue to suggest a feature (you can assign yourself if you intent to implement it).

To run tests, run pod install on the Example project and open the example workspace where you’ll find the tests.

Author

Noah Gilmore, noahgilmore.com

License

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

Latest podspec

{
    "name": "DefaultDict",
    "version": "1.0.0",
    "summary": "A Swift microframework for for dictionaries with default values.",
    "description": "DefaultDict is a simple Swift type representing a dictionary with default values. Similar to python's defaultdict, it allows the user to specify a default value that will be returned when a key not currently in the dictionary is accessed.",
    "homepage": "https://github.com/noahsark769/DefaultDict",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Noah Gilmore": "[email protected]"
    },
    "source": {
        "git": "https://github.com/noahsark769/DefaultDict.git",
        "tag": "1.0.0"
    },
    "social_media_url": "https://twitter.com/noahsark769",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "DefaultDict/Classes/**/*",
    "frameworks": "Foundation",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This