js-sdk-dict
v0.1.1
Published
Simple dictionary utility.
Downloads
3
Readme
js-sdk-dict
Simple dictionary utilities.
library
$ Dict() -> Dict
// Dictionary type. This represents an object with unordered key.
$ Dict::create() -> Dict
// Smart contructor.
$ Dict::set(k : Any, v : Any) -> Dict
// add a new item to the dict. 'k' key must be an object that
// can be tested with '=='.
$ Dict::get(k : Any) -> Dict
// get an item from the dict. 'k' key must be an object that
// can be tested with '=='.
license
See license.md
or visit Unlicense.