Variables
Const appendTo
appendTo: { <A, B>(key: A, value: B, map: ReadonlyMap<A, ReadonlyArray<B>>): ReadonlyMap<A, ReadonlyArray<B>>; <A, B>(key: A, value: B): (map: ReadonlyMap<A, ReadonlyArray<B>>) => ReadonlyMap<A, ReadonlyArray<B>>; <A, B>(key: A): { (value: B, map: ReadonlyMap<A, ReadonlyArray<B>>): ReadonlyMap<A, ReadonlyArray<B>>; (value: B): (map: ReadonlyMap<A, ReadonlyArray<B>>) => ReadonlyMap<A, ReadonlyArray<B>> } } = curry(__appendTo)
Type declaration
-
- <A, B>(key: A, value: B, map: ReadonlyMap<A, ReadonlyArray<B>>): ReadonlyMap<A, ReadonlyArray<B>>
- <A, B>(key: A, value: B): (map: ReadonlyMap<A, ReadonlyArray<B>>) => ReadonlyMap<A, ReadonlyArray<B>>
- <A, B>(key: A): { (value: B, map: ReadonlyMap<A, ReadonlyArray<B>>): ReadonlyMap<A, ReadonlyArray<B>>; (value: B): (map: ReadonlyMap<A, ReadonlyArray<B>>) => ReadonlyMap<A, ReadonlyArray<B>> }
-
Type parameters
Parameters
-
key: A
-
value: B
-
map: ReadonlyMap<A, ReadonlyArray<B>>
Returns ReadonlyMap<A, ReadonlyArray<B>>
-
Type parameters
Parameters
Returns (map: ReadonlyMap<A, ReadonlyArray<B>>) => ReadonlyMap<A, ReadonlyArray<B>>
-
- (map: ReadonlyMap<A, ReadonlyArray<B>>): ReadonlyMap<A, ReadonlyArray<B>>
-
Parameters
-
map: ReadonlyMap<A, ReadonlyArray<B>>
Returns ReadonlyMap<A, ReadonlyArray<B>>
-
Type parameters
Parameters
Returns { (value: B, map: ReadonlyMap<A, ReadonlyArray<B>>): ReadonlyMap<A, ReadonlyArray<B>>; (value: B): (map: ReadonlyMap<A, ReadonlyArray<B>>) => ReadonlyMap<A, ReadonlyArray<B>> }
-
- (value: B, map: ReadonlyMap<A, ReadonlyArray<B>>): ReadonlyMap<A, ReadonlyArray<B>>
- (value: B): (map: ReadonlyMap<A, ReadonlyArray<B>>) => ReadonlyMap<A, ReadonlyArray<B>>
-
Parameters
-
value: B
-
map: ReadonlyMap<A, ReadonlyArray<B>>
Returns ReadonlyMap<A, ReadonlyArray<B>>
-
Parameters
Returns (map: ReadonlyMap<A, ReadonlyArray<B>>) => ReadonlyMap<A, ReadonlyArray<B>>
-
- (map: ReadonlyMap<A, ReadonlyArray<B>>): ReadonlyMap<A, ReadonlyArray<B>>
-
Parameters
-
map: ReadonlyMap<A, ReadonlyArray<B>>
Returns ReadonlyMap<A, ReadonlyArray<B>>
Const collectBy
collect
By: { <A, B>(fn: Arity1<A, B>, iterable: Iterable<A>): ReadonlyMap<B, ReadonlyArray<A>>; <A, B>(fn: Arity1<A, B>): (iterable: Iterable<A>) => ReadonlyMap<B, ReadonlyArray<A>> } = curry(__collectBy)
Type declaration
-
- <A, B>(fn: Arity1<A, B>, iterable: Iterable<A>): ReadonlyMap<B, ReadonlyArray<A>>
- <A, B>(fn: Arity1<A, B>): (iterable: Iterable<A>) => ReadonlyMap<B, ReadonlyArray<A>>
-
Type parameters
Parameters
Returns ReadonlyMap<B, ReadonlyArray<A>>
-
Type parameters
Parameters
Returns (iterable: Iterable<A>) => ReadonlyMap<B, ReadonlyArray<A>>
-
- (iterable: Iterable<A>): ReadonlyMap<B, ReadonlyArray<A>>
-
Parameters
Returns ReadonlyMap<B, ReadonlyArray<A>>
Const forEach
for
Each: { <A, B>(fn: Arity2<A, B>, map: ReadonlyMap<A, B>): ReadonlyMap<A, B>; <A, B>(fn: Arity2<A, B>): (map: ReadonlyMap<A, B>) => ReadonlyMap<A, B> } = curry(__forEach)
Type declaration
-
- <A, B>(fn: Arity2<A, B>, map: ReadonlyMap<A, B>): ReadonlyMap<A, B>
- <A, B>(fn: Arity2<A, B>): (map: ReadonlyMap<A, B>) => ReadonlyMap<A, B>
-
Type parameters
Parameters
Returns ReadonlyMap<A, B>
-
Type parameters
Parameters
Returns (map: ReadonlyMap<A, B>) => ReadonlyMap<A, B>
-
- (map: ReadonlyMap<A, B>): ReadonlyMap<A, B>
-
Parameters
Returns ReadonlyMap<A, B>
Const getOr
get
Or: { <A, B>(key: A, fallback: IO<B>, map: ReadonlyMap<A, B>): B; <A, B>(key: A, fallback: IO<B>): (map: ReadonlyMap<A, B>) => B; <A>(key: A): { <B>(fallback: IO<B>, map: ReadonlyMap<A, B>): B; <B>(fallback: IO<B>): (map: ReadonlyMap<A, B>) => B } } = curry(function getOr<A, B>(key: A, fallback: IO<B>, map: ReadonlyMap<A, B>): B {return map.has(key) ? map.get(key)! : fallback()})
Type declaration
-
- <A, B>(key: A, fallback: IO<B>, map: ReadonlyMap<A, B>): B
- <A, B>(key: A, fallback: IO<B>): (map: ReadonlyMap<A, B>) => B
- <A>(key: A): { <B>(fallback: IO<B>, map: ReadonlyMap<A, B>): B; <B>(fallback: IO<B>): (map: ReadonlyMap<A, B>) => B }
-
Type parameters
Parameters
-
key: A
-
fallback: IO<B>
-
map: ReadonlyMap<A, B>
Returns B
-
Type parameters
Parameters
Returns (map: ReadonlyMap<A, B>) => B
-
- (map: ReadonlyMap<A, B>): B
-
Type parameters
Parameters
Returns { <B>(fallback: IO<B>, map: ReadonlyMap<A, B>): B; <B>(fallback: IO<B>): (map: ReadonlyMap<A, B>) => B }
-
- <B>(fallback: IO<B>, map: ReadonlyMap<A, B>): B
- <B>(fallback: IO<B>): (map: ReadonlyMap<A, B>) => B
-
Type parameters
Parameters
-
fallback: IO<B>
-
map: ReadonlyMap<A, B>
Returns B
-
Type parameters
Parameters
Returns (map: ReadonlyMap<A, B>) => B
-
- (map: ReadonlyMap<A, B>): B
Const has
has: { <A, B>(value: A, set: ReadonlyMap<A, B>): boolean; <A>(value: A): <B>(set: ReadonlyMap<A, B>) => boolean } = curry(__has)
Type declaration
-
- <A, B>(value: A, set: ReadonlyMap<A, B>): boolean
- <A>(value: A): <B>(set: ReadonlyMap<A, B>) => boolean
-
Type parameters
Parameters
-
value: A
-
set: ReadonlyMap<A, B>
Returns boolean
-
Type parameters
Parameters
Returns <B>(set: ReadonlyMap<A, B>) => boolean
-
- <B>(set: ReadonlyMap<A, B>): boolean
-
Type parameters
Parameters
Returns boolean
Const map
map
: { <A, B, C>
(fn
: Arity2<A, B, C>, map
: ReadonlyMap<A, B>): ReadonlyMap<A, C>; <A, B, C>
(fn
: Arity2<A, B, C>): (map
: ReadonlyMap<A, B>) => ReadonlyMap<A, C> } = curry(__map)
Type declaration
-
- <A, B, C>(fn: Arity2<A, B, C>, map: ReadonlyMap<A, B>): ReadonlyMap<A, C>
- <A, B, C>(fn: Arity2<A, B, C>): (map: ReadonlyMap<A, B>) => ReadonlyMap<A, C>
-
Type parameters
Parameters
-
fn: Arity2<A, B, C>
-
map: ReadonlyMap<A, B>
Returns ReadonlyMap<A, C>
-
Type parameters
Parameters
Returns (map: ReadonlyMap<A, B>) => ReadonlyMap<A, C>
-
- (map: ReadonlyMap<A, B>): ReadonlyMap<A, C>
-
Parameters
Returns ReadonlyMap<A, C>
Const remove
remove: { <A, B>(key: A, map: ReadonlyMap<A, B>): ReadonlyMap<A, B>; <A, B>(key: A): (map: ReadonlyMap<A, B>) => ReadonlyMap<A, B> } = curry(<A, B>(key: A, map: ReadonlyMap<A, B>): ReadonlyMap<A, B> =>withMutations((x) => x.delete(key), map),)
Type declaration
-
- <A, B>(key: A, map: ReadonlyMap<A, B>): ReadonlyMap<A, B>
- <A, B>(key: A): (map: ReadonlyMap<A, B>) => ReadonlyMap<A, B>
-
Type parameters
Parameters
-
key: A
-
map: ReadonlyMap<A, B>
Returns ReadonlyMap<A, B>
-
Type parameters
Parameters
Returns (map: ReadonlyMap<A, B>) => ReadonlyMap<A, B>
-
- (map: ReadonlyMap<A, B>): ReadonlyMap<A, B>
-
Parameters
Returns ReadonlyMap<A, B>
Const withMutations
with
Mutations: { <A, B>(fn: (map: Map<A, B>) => void, map: ReadonlyMap<A, B>): ReadonlyMap<A, B>; <A, B>(fn: (map: Map<A, B>) => void): (map: ReadonlyMap<A, B>) => ReadonlyMap<A, B> } = curry(__withMutations)
Type declaration
-
- <A, B>(fn: (map: Map<A, B>) => void, map: ReadonlyMap<A, B>): ReadonlyMap<A, B>
- <A, B>(fn: (map: Map<A, B>) => void): (map: ReadonlyMap<A, B>) => ReadonlyMap<A, B>
-
Type parameters
Parameters
-
fn: (map: Map<A, B>) => void
-
map: ReadonlyMap<A, B>
Returns ReadonlyMap<A, B>
-
Type parameters
Parameters
-
fn: (map: Map<A, B>) => void
Returns (map: ReadonlyMap<A, B>) => ReadonlyMap<A, B>
-
- (map: ReadonlyMap<A, B>): ReadonlyMap<A, B>
-
Parameters
Returns ReadonlyMap<A, B>
@typed/map