api/classes/value
Globals / Value
Class: Value<A>
Type parameters
Name |
---|
A |
Hierarchy
Chunk<A>
↳ Value
Implements
- Iterable<A>
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
+ new Value(value
: A): Value
Defined in packages/core/lib/main/Chunk.ts:174
Parameters:
Name | Type |
---|---|
value | A |
Returns: Value
Properties
length
• length: number = 1
Defined in packages/core/lib/main/Chunk.ts:174
Accessors
asArray
• get asArray(): A[]
Defined in packages/core/lib/main/Chunk.ts:178
Returns: A[]
Methods
[Symbol.iterator]
▸ [Symbol.iterator](): Iterator<A>
Overrides Chunk.[Symbol.iterator]
Defined in packages/core/lib/main/Chunk.ts:181
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:184
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:187
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:190
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>