fx-flow v0.7.0 / pipe/lazy / append
Function: append()
append(args)
append<
A
,B
>(args
): (iterable
) =>IteratorReturnValue
<B
,Awaited
<A
>>
Return Iterable/AsyncIterable containing the contents of the given iterable, followed by the given element.
Type parameters
• A
• B extends UniversalIterable
<Awaited
<A
>>
Parameters
• args: A
Returns
Function
Parameters
• iterable: B
Returns
IteratorReturnValue
<B
, Awaited
<A
>>
Example
typescript
const iter = append(4, [1,2,3]);
iter.next() // {done: false, value: 1}
iter.next() // {done: false, value: 2}
iter.next() // {done: false, value: 3}
iter.next() // {done: false, value: 4}
iter.next() // {done: true, value: undefined}
Source
packages/core/src/pipe/lazy/append.ts:68
append(args, iterable)
append<
A
>(args
,iterable
):IterableIterator
<A
>
Type parameters
• A
Parameters
• args: A
• iterable: Iterable
<A
>
Returns
Source
packages/core/src/pipe/lazy/append.ts:71
append(args, iterable)
append<
A
>(args
,iterable
):AsyncIterableIterator
<A
>
Type parameters
• A
Parameters
• args: A
• iterable: AsyncIterable
<A
>