Skip to main content

Function: lastConcur()

lastConcur<Value>(concurIterable): ConcurIterable<Value>

Returns a concur iterable containing the last value of concurIterable, or an empty concur iterable if concurIterable is empty.

Type Parameters

Value

Parameters

concurIterable: ConcurIterable<Value>

Returns

ConcurIterable<Value>

Example

console.log(
await pipe(
asConcur([`sloth`, `more sloth`, `even more sloth`]),
lastConcur,
reduceConcur(toArray()),
),
)
//=> [ 'even more sloth' ]

Defined in

splices.d.ts:474