api/classes/concat
Globals / Concat
Class: Concat<A>
Type parameters
Name |
---|
A |
Hierarchy
Chunk<A>
↳ Concat
Implements
- Iterable<A>
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
+ new Concat(L
: Chunk<A>, R
: Chunk<A>): Concat
Defined in packages/core/lib/main/Chunk.ts:95
Parameters:
Name | Type |
---|---|
L | Chunk<A> |
R | Chunk<A> |
Returns: Concat
Properties
length
• Readonly
length: number = this.L.length + this.R.length
Defined in packages/core/lib/main/Chunk.ts:95
Accessors
asArray
• get asArray(): A[]
Defined in packages/core/lib/main/Chunk.ts:102
Returns: A[]
Methods
[Symbol.iterator]
▸ [Symbol.iterator](): Iterator<A>
Overrides Chunk.[Symbol.iterator]
Defined in packages/core/lib/main/Chunk.ts:105
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:114
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:117
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:120
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>