MODULE StrMap
data
constructor(readonly value: { [key: string]: A }) {}
<B>(f: (a: A) => B): StrMap<B>
<B>(f: (k: string, a: A) => B): StrMap<B>
<B>(b: B, f: (b: B, a: A) => B): B
instance
Functor1<URI> & Foldable1<URI> & Traversable1<URI>
function
<A, B>(d: StrMap<A>, f: (k: string, a: A) => B): Array<B>
function
<A = never>(): Monoid<StrMap<A>>
function
<A>(S: Setoid<A>): Setoid<StrMap<A>>
function
<A>(k: string, a: A, d: StrMap<A>): StrMap<A>
Insert or replace a key/value pair in a map
function
<A>(d: StrMap<A>): boolean
Test whether a dictionary is empty
function
<A>(S: Setoid<A>) => (d1: StrMap<A>, d2: StrMap<A>): boolean
Test whether one dictionary contains all of the keys and values contained in another dictionary
function
<A>(k: string, d: StrMap<A>): Option<A>
Lookup the value for a key in a dictionary
function
<A>(k: string, d: StrMap<A>): Option<[A, StrMap<A>]>
Delete a key and value from a map, returning the value as well as the subsequent map
function
<A>(k: string, d: StrMap<A>): StrMap<A>
Delete a key and value from a map
function
<A>(k: string, a: A): StrMap<A>
Create a dictionary with one key/value pair
function
<A>(d: StrMap<A>): number
Calculate the number of key/value pairs in a dictionary
function
<A>(d: StrMap<A>): Array<[string, A]>
function
<F>(unfoldable: Unfoldable<F>) => <A>(d: StrMap<A>): HKT<F, [string, A]>
Unfolds a dictionary into a list of key/value pairs