Skip to main content

Function: dropConcur()

Returns a concur iterable containing the values of concurIterable in iteration order except for the first count values.

If the count is greater than the number of values in concurIterable, then an empty concur iterable is returned.

Throws

if count isn't a non-negative integer.

Example

console.log(
await pipe(
asConcur([1, 2, 3, 4, 5, `sloth`]),
dropConcur(3),
reduceConcur(toArray()),
),
)
//=> [ 4, 5, 'sloth' ]

Since

v0.0.2

Call Signature

dropConcur<Count>(count): <Value>(concurIterable) => ConcurIterable<Value>

Type Parameters

Count extends number

Parameters

count

NonNegativeInteger<Count>

Returns

Function

Type Parameters

Value

Parameters

concurIterable

ConcurIterable<Value>

Returns

ConcurIterable<Value>

Defined in

splices.d.ts:249

Call Signature

dropConcur<Count, Value>(count, concurIterable): ConcurIterable<Value>

Type Parameters

Count extends number

Value

Parameters

count

NonNegativeInteger<Count>

concurIterable

ConcurIterable<Value>

Returns

ConcurIterable<Value>

Defined in

splices.d.ts:249