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' ]

dropConcur(count)

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

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.

Type Parameters

Count extends number

Parameters

count: NonNegativeInteger<Count>

Returns

Function

Type Parameters

Value

Parameters

concurIterable: ConcurIterable<Value>

Returns

ConcurIterable<Value>

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' ]

Defined in

splices.d.ts:240

dropConcur(count, concurIterable)

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

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.

Type Parameters

Count extends number

Value

Parameters

count: NonNegativeInteger<Count>

concurIterable: ConcurIterable<Value>

Returns

ConcurIterable<Value>

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' ]

Defined in

splices.d.ts:240