api/classes/chunk
Globals / Chunk
Class: Chunk<A>
Type parameters
Name |
---|
A |
Hierarchy
Implements
- Iterable<A>
Index
Properties
Methods
Properties
asArray
• Abstract
asArray: A[]
Defined in packages/core/lib/main/Chunk.ts:73
length
• Readonly
Abstract
length: number
Defined in packages/core/lib/main/Chunk.ts:74
Methods
[Symbol.iterator]
▸ Abstract
[Symbol.iterator](): Iterator<A>
Defined in packages/core/lib/main/Chunk.ts:75
Returns: Iterator<A>
chain
▸ chain<B>(fn
: (A: A) => Chunk<B>): Chunk<B>
Defined in packages/core/lib/main/Chunk.ts:76
Type parameters:
Name |
---|
B |
Parameters:
Name | Type |
---|---|
fn | (A: A) => Chunk<B> |
Returns: Chunk<B>
concat
▸ concat(that
: Chunk<A>): Chunk<A>
Defined in packages/core/lib/main/Chunk.ts:79
Parameters:
Name | Type |
---|---|
that | Chunk<A> |
Returns: Chunk<A>
filter
▸ Abstract
filter(fn
: (A: A) => boolean): Chunk<A>
Defined in packages/core/lib/main/Chunk.ts:89
Parameters:
Name | Type |
---|---|
fn | (A: A) => boolean |
Returns: Chunk<A>
fold
▸ Abstract
fold<S>(S
: S, fn
: (A: A, S: S) => S): S
Defined in packages/core/lib/main/Chunk.ts:90
Type parameters:
Name |
---|
S |
Parameters:
Name | Type |
---|---|
S | S |
fn | (A: A, S: S) => S |
Returns: S
map
▸ Abstract
map<B>(fn
: (A: A) => B): Chunk<B>
Defined in packages/core/lib/main/Chunk.ts:91
Type parameters:
Name |
---|
B |
Parameters:
Name | Type |
---|---|
fn | (A: A) => B |
Returns: Chunk<B>
createN
▸ Static
createN<A>(arr
: A[], n
: number): Chunk<A>
Defined in packages/core/lib/main/Chunk.ts:54
Type parameters:
Name |
---|
A |
Parameters:
Name | Type |
---|---|
arr | A[] |
n | number |
Returns: Chunk<A>
empty
▸ Static
empty<A>(): Chunk<A>
Defined in packages/core/lib/main/Chunk.ts:59
Type parameters:
Name |
---|
A |
Returns: Chunk<A>
from
▸ Static
from<A>(arr
: A[]): Chunk<A>
Defined in packages/core/lib/main/Chunk.ts:62
Type parameters:
Name |
---|
A |
Parameters:
Name | Type |
---|---|
arr | A[] |
Returns: Chunk<A>
isEmpty
▸ Static
isEmpty<A>(C
: Chunk<A>): C is Empty
Defined in packages/core/lib/main/Chunk.ts:66
Type parameters:
Name |
---|
A |
Parameters:
Name | Type |
---|---|
C | Chunk<A> |
Returns: C is Empty
of
▸ Static
of<A>(A
: A): Chunk<A>
Defined in packages/core/lib/main/Chunk.ts:69
Type parameters:
Name |
---|
A |
Parameters:
Name | Type |
---|---|
A | A |
Returns: Chunk<A>