Skip to content

noahsark769/DefaultDict

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DefaultDict

Note: DefaultDict is still maintained, but in Swift 4 you might rather use Swift's built in default value feature.

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.

About

A Swift microframework for for dictionaries with default values

Resources

License

Stars

Watchers

Forks

Packages

No packages published