api/classes/fmap
Globals / FMap
Class: FMap<K, V>
A light weight wrapper over the Javascript's mutable Map. For most use cases a more obvious choice would be to use an immutable Map.
Type parameters
Name |
---|
K |
V |
Hierarchy
- FMap
Index
Methods
Methods
get
▸ get(key
: K): QIO<V, NoSuchElement>
Defined in packages/core/lib/main/FMap.ts:17
Parameters:
Name | Type |
---|---|
key | K |
Returns: QIO<V, NoSuchElement>
has
▸ has(key
: K): QIO<boolean>
Defined in packages/core/lib/main/FMap.ts:22
Parameters:
Name | Type |
---|---|
key | K |
Returns: QIO<boolean>
memoize
▸ memoize<E1, R1>(fn
: (a: K) => QIO<V, E1, R1>): function
Defined in packages/core/lib/main/FMap.ts:25
Type parameters:
Name |
---|
E1 |
R1 |
Parameters:
Name | Type |
---|---|
fn | (a: K) => QIO<V, E1, R1> |
Returns: function
set
▸ set(key
: K, value
: V): QIO<V>
Defined in packages/core/lib/main/FMap.ts:30
Parameters:
Name | Type |
---|---|
key | K |
value | V |
Returns: QIO<V>
of
▸ Static
of<K, V>(): QIO<FMap<K, V>>
Defined in packages/core/lib/main/FMap.ts:12
Type parameters:
Name | Default |
---|---|
K | never |
V | never |