Dict
constDict:object
Defined in: Data/Dict.ts:302
Type Declaration
Section titled “Type Declaration”compact
Section titled “compact”compact: <
K,A>(data) =>ReadonlyMap<K,A>
Type Parameters
Section titled “Type Parameters”K
A
Parameters
Section titled “Parameters”ReadonlyMap<K, Maybe<A>>
Returns
Section titled “Returns”ReadonlyMap<K, A>
difference
Section titled “difference”difference: <
K,V>(other) => (data) =>ReadonlyMap<K,V>
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”ReadonlyMap<K, V>
Returns
Section titled “Returns”(data) => ReadonlyMap<K, V>
empty: <
K,V>() =>ReadonlyMap<K,V>
Type Parameters
Section titled “Type Parameters”K
V
Returns
Section titled “Returns”ReadonlyMap<K, V>
entries
Section titled “entries”entries: <
K,V>(data) => readonly readonly [K,V][]
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”ReadonlyMap<K, V>
Returns
Section titled “Returns”readonly readonly [K, V][]
filter
Section titled “filter”filter: <
A>(predicate) => <K>(data) =>ReadonlyMap<K,A>
Type Parameters
Section titled “Type Parameters”A
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(a) => boolean
Returns
Section titled “Returns”<K>(data) => ReadonlyMap<K, A>
filterMap
Section titled “filterMap”filterMap: <
A,B>(f) => <K>(data) =>ReadonlyMap<K,B>
Type Parameters
Section titled “Type Parameters”A
B
Parameters
Section titled “Parameters”(a) => Maybe<B>
Returns
Section titled “Returns”<K>(data) => ReadonlyMap<K, B>
filterWithKey
Section titled “filterWithKey”filterWithKey: <
K,A>(predicate) => (data) =>ReadonlyMap<K,A>
Type Parameters
Section titled “Type Parameters”K
A
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(key, value) => boolean
Returns
Section titled “Returns”(data) => ReadonlyMap<K, A>
from:
object=DictFrom
from.Array
Section titled “from.Array”Array: <
K,V>(data) =>ReadonlyMap<K,V>
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”readonly readonly [K, V][]
Returns
Section titled “Returns”ReadonlyMap<K, V>
from.entries
Section titled “from.entries”entries: <
K,V>(entries) =>ReadonlyMap<K,V>
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”entries
Section titled “entries”readonly readonly [K, V][]
Returns
Section titled “Returns”ReadonlyMap<K, V>
from.nullable
Section titled “from.nullable”nullable: <
K,V>(data) =>Maybe<ReadonlyMap<K,V>>
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”ReadonlyMap<K, V> | null | undefined
Returns
Section titled “Returns”Maybe<ReadonlyMap<K, V>>
from.Record
Section titled “from.Record”Record: <
K,V>(record) =>ReadonlyMap<K,V>
Type Parameters
Section titled “Type Parameters”K extends string
V
Parameters
Section titled “Parameters”record
Section titled “record”Readonly<Record<K, V>>
Returns
Section titled “Returns”ReadonlyMap<K, V>
groupBy
Section titled “groupBy”groupBy: <
A,K>(f) => (as) =>ReadonlyMap<K,NonEmptyArr<A>>
Type Parameters
Section titled “Type Parameters”A
K
Parameters
Section titled “Parameters”(a) => K
Returns
Section titled “Returns”(as) => ReadonlyMap<K, NonEmptyArr<A>>
has: <
K,V>(key) => (data) =>boolean
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”K
Returns
Section titled “Returns”(data) => boolean
insert
Section titled “insert”insert: <
K,V>(key,value) => (data) =>ReadonlyMap<K,V>
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”K
V
Returns
Section titled “Returns”(data) => ReadonlyMap<K, V>
intersection
Section titled “intersection”intersection: <
K,V>(other) => (data) =>ReadonlyMap<K,V>
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”ReadonlyMap<K, V>
Returns
Section titled “Returns”(data) => ReadonlyMap<K, V>
is:
object=DictIs
is.empty
Section titled “is.empty”empty: <
K,V>(m) =>boolean
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”ReadonlyMap<K, V>
Returns
Section titled “Returns”boolean
is.nonEmpty
Section titled “is.nonEmpty”nonEmpty: <
K,V>(m) =>m is NonEmptyMap<K, V>
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”ReadonlyMap<K, V>
Returns
Section titled “Returns”m is NonEmptyMap<K, V>
keys: <
K,V>(data) => readonlyK[]
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”ReadonlyMap<K, V>
Returns
Section titled “Returns”readonly K[]
lookup
Section titled “lookup”lookup: <
K,V>(key) => (data) =>Maybe<V>
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”K
Returns
Section titled “Returns”(data) => Maybe<V>
map: <
A,B>(f) => <K>(data) =>ReadonlyMap<K,B>
Type Parameters
Section titled “Type Parameters”A
B
Parameters
Section titled “Parameters”(a) => B
Returns
Section titled “Returns”<K>(data) => ReadonlyMap<K, B>
mapEntries
Section titled “mapEntries”mapEntries: <
K1,V1,K2,V2>(f) => (data) =>ReadonlyMap<K2,V2>
Type Parameters
Section titled “Type Parameters”K1
V1
K2
V2
Parameters
Section titled “Parameters”(key, value) => readonly [K2, V2]
Returns
Section titled “Returns”(data) => ReadonlyMap<K2, V2>
mapKeys
Section titled “mapKeys”mapKeys: <
K1,K2,V>(f) => (data) =>ReadonlyMap<K2,V>
Type Parameters
Section titled “Type Parameters”K1
K2
V
Parameters
Section titled “Parameters”(key) => K2
Returns
Section titled “Returns”(data) => ReadonlyMap<K2, V>
mapWithKey
Section titled “mapWithKey”mapWithKey: <
K,A,B>(f) => (data) =>ReadonlyMap<K,B>
Type Parameters
Section titled “Type Parameters”K
A
B
Parameters
Section titled “Parameters”(key, value) => B
Returns
Section titled “Returns”(data) => ReadonlyMap<K, B>
mergeWith
Section titled “mergeWith”mergeWith: <
V>(combine) => {<K>(first,second):ReadonlyMap<K,V>; <K>(second): (first) =>ReadonlyMap<K,V>; }
Type Parameters
Section titled “Type Parameters”V
Parameters
Section titled “Parameters”combine
Section titled “combine”(a, b) => V
Returns
Section titled “Returns”{<K>(first, second): ReadonlyMap<K, V>; <K>(second): (first) => ReadonlyMap<K, V>; }
NonEmpty
Section titled “NonEmpty”NonEmpty:
object=DictNonEmptyConst
NonEmpty.entries
Section titled “NonEmpty.entries”entries: <
K,V>(m) =>NonEmptyArr<readonly [K,V]> =_nonEmptyEntries
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”NonEmptyMap<K, V>
Returns
Section titled “Returns”NonEmptyArr<readonly [K, V]>
NonEmpty.from
Section titled “NonEmpty.from”from:
object
NonEmpty.from.Map
Section titled “NonEmpty.from.Map”Map: <
K,V>(m) =>Maybe<NonEmptyMap<K,V>> =_nonEmptyFromMap
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”ReadonlyMap<K, V>
Returns
Section titled “Returns”Maybe<NonEmptyMap<K, V>>
NonEmpty.keys
Section titled “NonEmpty.keys”keys: <
K,V>(m) =>NonEmptyArr<K> =_nonEmptyKeys
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”NonEmptyMap<K, V>
Returns
Section titled “Returns”NonEmptyArr<K>
NonEmpty.map
Section titled “NonEmpty.map”map: <
A,B>(f) => <K>(m) =>NonEmptyMap<K,B> =_nonEmptyMap
Type Parameters
Section titled “Type Parameters”A
B
Parameters
Section titled “Parameters”(a) => B
Returns
Section titled “Returns”<K>(m) => NonEmptyMap<K, B>
NonEmpty.mapWithKey
Section titled “NonEmpty.mapWithKey”mapWithKey: <
K,A,B>(f) => (m) =>NonEmptyMap<K,B> =_nonEmptyMapWithKey
Type Parameters
Section titled “Type Parameters”K
A
B
Parameters
Section titled “Parameters”(key, a) => B
Returns
Section titled “Returns”(m) => NonEmptyMap<K, B>
NonEmpty.reduce
Section titled “NonEmpty.reduce”reduce: <
V>(f) => <K>(m) =>V=_nonEmptyReduce
Type Parameters
Section titled “Type Parameters”V
Parameters
Section titled “Parameters”(acc, value) => V
Returns
Section titled “Returns”<K>(m) => V
NonEmpty.singleton
Section titled “NonEmpty.singleton”singleton: <
K,V>(key,value) =>NonEmptyMap<K,V> =_nonEmptySingleton
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”K
V
Returns
Section titled “Returns”NonEmptyMap<K, V>
NonEmpty.values
Section titled “NonEmpty.values”values: <
K,V>(m) =>NonEmptyArr<V> =_nonEmptyValues
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”NonEmptyMap<K, V>
Returns
Section titled “Returns”NonEmptyArr<V>
reduce
Section titled “reduce”reduce: <
B,V>(init,f) => <K>(data) =>B
Type Parameters
Section titled “Type Parameters”B
V
Parameters
Section titled “Parameters”B
(acc, value) => B
Returns
Section titled “Returns”<K>(data) => B
reduceWithKey
Section titled “reduceWithKey”reduceWithKey: <
B,K,V>(init,f) => (data) =>B
Type Parameters
Section titled “Type Parameters”B
K
V
Parameters
Section titled “Parameters”B
(acc, value, key) => B
Returns
Section titled “Returns”(data) => B
remove
Section titled “remove”remove: <
K,V>(key) => (data) =>ReadonlyMap<K,V>
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”K
Returns
Section titled “Returns”(data) => ReadonlyMap<K, V>
singleton
Section titled “singleton”singleton: <
K,V>(key,value) =>ReadonlyMap<K,V>
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”K
V
Returns
Section titled “Returns”ReadonlyMap<K, V>
size: <
K,V>(data) =>number
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”ReadonlyMap<K, V>
Returns
Section titled “Returns”number
to:
object=DictTo
to.Record
Section titled “to.Record”Record: <
K,V>(map) =>Readonly<Record<K,V>>
Type Parameters
Section titled “Type Parameters”K extends string
V
Parameters
Section titled “Parameters”ReadonlyMap<K, V>
Returns
Section titled “Returns”Readonly<Record<K, V>>
union: <
K,V>(other) => (data) =>ReadonlyMap<K,V>
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”ReadonlyMap<K, V>
Returns
Section titled “Returns”(data) => ReadonlyMap<K, V>
upsert
Section titled “upsert”upsert: <
K,V>(key,f) => (data) =>ReadonlyMap<K,V>
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”K
(existing) => V
Returns
Section titled “Returns”(data) => ReadonlyMap<K, V>
values
Section titled “values”values: <
K,V>(data) => readonlyV[]
Type Parameters
Section titled “Type Parameters”K
V
Parameters
Section titled “Parameters”ReadonlyMap<K, V>
Returns
Section titled “Returns”readonly V[]