api/classes/puremutablelist
Globals / PureMutableList
Class: PureMutableList<A>
A pure version of a mutable doubly linked list
Type parameters
Name |
---|
A |
Hierarchy
- PureMutableList
Index
Accessors
Methods
Accessors
asArray
• get asArray(): QIO<A[]>
Defined in packages/core/lib/internals/PureMutableList.ts:18
Returns: QIO<A[]>
isEmpty
• get isEmpty(): QIO<boolean>
Defined in packages/core/lib/internals/PureMutableList.ts:21
Returns: QIO<boolean>
length
• get length(): QIO<number>
Defined in packages/core/lib/internals/PureMutableList.ts:24
Returns: QIO<number>
shift
• get shift(): QIO<Option<A>>
Defined in packages/core/lib/internals/PureMutableList.ts:27
Returns: QIO<Option<A>>
Methods
add
▸ add(element
: A): QIO<LinkedListNode<A>>
Defined in packages/core/lib/internals/PureMutableList.ts:30
Parameters:
Name | Type |
---|---|
element | A |
Returns: QIO<LinkedListNode<A>>
forEach
▸ forEach<E1>(f
: (a: A) => QIO<void, E1>): QIO<void, E1>
Defined in packages/core/lib/internals/PureMutableList.ts:33
Type parameters:
Name |
---|
E1 |
Parameters:
Name | Type |
---|---|
f | (a: A) => QIO<void, E1> |
Returns: QIO<void, E1>
remove
▸ remove(node
: LinkedListNode<A>): QIO<void>
Defined in packages/core/lib/internals/PureMutableList.ts:39
Parameters:
Name | Type |
---|---|
node | LinkedListNode<A> |
Returns: QIO<void>
of
▸ Static
of<A>(): QIO<PureMutableList<A>>
Defined in packages/core/lib/internals/PureMutableList.ts:13
Type parameters:
Name | Default |
---|---|
A | never |
Returns: QIO<PureMutableList<A>>