api/classes/empty
Globals / Empty
Class: Empty
Hierarchy
Chunk<never>
↳ Empty
Implements
- Iterable<never>
Index
Properties
Accessors
Methods
Properties
length
• Readonly
length: 0 = 0
Defined in packages/core/lib/main/Chunk.ts:154
Accessors
asArray
• get asArray(): never[]
Defined in packages/core/lib/main/Chunk.ts:155
Returns: never[]
Methods
[Symbol.iterator]
▸ [Symbol.iterator](): Iterator<never>
Overrides Chunk.[Symbol.iterator]
Defined in packages/core/lib/main/Chunk.ts:159
Returns: Iterator<never>
chain
▸ chain<B>(fn
: (A: never) => Chunk<B>): Chunk<B>
Defined in packages/core/lib/main/Chunk.ts:76
Type parameters:
Name |
---|
B |
Parameters:
Name | Type |
---|---|
fn | (A: never) => Chunk<B> |
Returns: Chunk<B>
concat
▸ concat(that
: Chunk<never>): Chunk<never>
Defined in packages/core/lib/main/Chunk.ts:79
Parameters:
Name | Type |
---|---|
that | Chunk<never> |
Returns: Chunk<never>
filter
▸ filter(fn
: (A: never) => boolean): Chunk<never>
Defined in packages/core/lib/main/Chunk.ts:161
Parameters:
Name | Type |
---|---|
fn | (A: never) => boolean |
Returns: Chunk<never>
fold
▸ fold<S>(S
: S, fn
: (A: never, S: S) => S): S
Defined in packages/core/lib/main/Chunk.ts:165
Type parameters:
Name |
---|
S |
Parameters:
Name | Type |
---|---|
S | S |
fn | (A: never, S: S) => S |
Returns: S
map
▸ map<B>(fn
: (A: never) => B): Chunk<B>
Defined in packages/core/lib/main/Chunk.ts:168
Type parameters:
Name |
---|
B |
Parameters:
Name | Type |
---|---|
fn | (A: never) => 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>