Documentation
Preparing search index...
@symbola/iterable
require
Reduceable
Class Reduceable
Abstract
Index
Constructors
constructor
Methods
[reduce]
Constructors
constructor
new
Reduceable
()
:
Reduceable
Returns
Reduceable
Methods
[reduce]
"[reduce]"
<
A
>
(
this
:
Iterable
<
A
>
,
fn
:
(
p
:
A
,
c
:
A
)
=>
A
)
:
A
Reduces the iterable to a single value.
Type Parameters
A
Parameters
this
:
Iterable
<
A
>
fn
:
(
p
:
A
,
c
:
A
)
=>
A
Returns
A
"[reduce]"
<
A
>
(
this
:
Iterable
<
A
>
,
fn
:
(
p
:
A
,
c
:
A
)
=>
A
,
init
:
A
)
:
A
Reduces the iterable to a single value.
Type Parameters
A
Parameters
this
:
Iterable
<
A
>
fn
:
(
p
:
A
,
c
:
A
)
=>
A
init
:
A
Returns
A
"[reduce]"
<
A
,
B
>
(
this
:
Iterable
<
A
>
,
fn
:
(
p
:
B
,
c
:
A
)
=>
B
,
init
:
B
)
:
B
Reduces the iterable to a single value.
Type Parameters
A
B
Parameters
this
:
Iterable
<
A
>
fn
:
(
p
:
B
,
c
:
A
)
=>
B
init
:
B
Returns
B
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
[reduce]
Documentation
Loading...
Reduces the iterable to a single value.