api/classes/arrayc
Globals / ArrayC
Class: ArrayC<A>
Type parameters
Name |
---|
A |
Hierarchy
Chunk<A>
↳ ArrayC
Implements
- Iterable<A>
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
+ new ArrayC(array
: A[]): ArrayC
Defined in packages/core/lib/main/Chunk.ts:126
Parameters:
Name | Type |
---|---|
array | A[] |
Returns: ArrayC
Properties
length
• Readonly
length: number = this.array.length
Defined in packages/core/lib/main/Chunk.ts:126
Accessors
asArray
• get asArray(): A[]
Defined in packages/core/lib/main/Chunk.ts:130
Returns: A[]
Methods
[Symbol.iterator]
▸ [Symbol.iterator](): Iterator<A>
Overrides Chunk.[Symbol.iterator]
Defined in packages/core/lib/main/Chunk.ts:133
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
▸ filter(fn
: (A: A) => boolean): Chunk<A>
Defined in packages/core/lib/main/Chunk.ts:136
Parameters:
Name | Type |
---|---|
fn | (A: A) => boolean |
Returns: Chunk<A>
fold
▸ fold<S>(S
: S, fn
: (A: A, S: S) => S): S
Defined in packages/core/lib/main/Chunk.ts:139
Type parameters:
Name |
---|
S |
Parameters:
Name | Type |
---|---|
S | S |
fn | (A: A, S: S) => S |
Returns: S
map
▸ map<B>(fn
: (A: A) => B): Chunk<B>
Defined in packages/core/lib/main/Chunk.ts:148
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>