<B>(that: Iterable<B>): <A>(self: Iterable<A>) => Iterable<A | B>
<A, B>(self: Iterable<A>, that: Iterable<B>): Iterable<A | B>Prepends the specified prefix iterable to the beginning of the specified iterable.
Example (Prepending another iterable)
import { Iterable } from "effect"
import * as assert from "node:assert"
assert.deepStrictEqual(
Array.from(Iterable.prependAll([1, 2], ["a", "b"])),
["a", "b", 1, 2]
)combining
Source effect/Iterable.ts:2447 lines
export const const prependAll: {
<B>(that: Iterable<B>): <A>(
self: Iterable<A>
) => Iterable<A | B>
<A, B>(
self: Iterable<A>,
that: Iterable<B>
): Iterable<A | B>
}
Prepends the specified prefix iterable to the beginning of the specified iterable.
Example (Prepending another iterable)
import { Iterable } from "effect"
import * as assert from "node:assert"
assert.deepStrictEqual(
Array.from(Iterable.prependAll([1, 2], ["a", "b"])),
["a", "b", 1, 2]
)
prependAll: {
<function (type parameter) B in <B>(that: Iterable<B>): <A>(self: Iterable<A>) => Iterable<A | B>B>(that: Iterable<B>that: interface Iterable<T, TReturn = any, TNext = any>Iterable<function (type parameter) B in <B>(that: Iterable<B>): <A>(self: Iterable<A>) => Iterable<A | B>B>): <function (type parameter) A in <A>(self: Iterable<A>): Iterable<A | B>A>(self: Iterable<A>self: interface Iterable<T, TReturn = any, TNext = any>Iterable<function (type parameter) A in <A>(self: Iterable<A>): Iterable<A | B>A>) => interface Iterable<T, TReturn = any, TNext = any>Iterable<function (type parameter) A in <A>(self: Iterable<A>): Iterable<A | B>A | function (type parameter) B in <B>(that: Iterable<B>): <A>(self: Iterable<A>) => Iterable<A | B>B>
<function (type parameter) A in <A, B>(self: Iterable<A>, that: Iterable<B>): Iterable<A | B>A, function (type parameter) B in <A, B>(self: Iterable<A>, that: Iterable<B>): Iterable<A | B>B>(self: Iterable<A>self: interface Iterable<T, TReturn = any, TNext = any>Iterable<function (type parameter) A in <A, B>(self: Iterable<A>, that: Iterable<B>): Iterable<A | B>A>, that: Iterable<B>that: interface Iterable<T, TReturn = any, TNext = any>Iterable<function (type parameter) B in <A, B>(self: Iterable<A>, that: Iterable<B>): Iterable<A | B>B>): interface Iterable<T, TReturn = any, TNext = any>Iterable<function (type parameter) A in <A, B>(self: Iterable<A>, that: Iterable<B>): Iterable<A | B>A | function (type parameter) B in <A, B>(self: Iterable<A>, that: Iterable<B>): Iterable<A | B>B>
} = import dualdual(
2,
<function (type parameter) A in <A, B>(self: Iterable<A>, that: Iterable<B>): Iterable<A | B>A, function (type parameter) B in <A, B>(self: Iterable<A>, that: Iterable<B>): Iterable<A | B>B>(self: Iterable<A>self: interface Iterable<T, TReturn = any, TNext = any>Iterable<function (type parameter) A in <A, B>(self: Iterable<A>, that: Iterable<B>): Iterable<A | B>A>, that: Iterable<B>that: interface Iterable<T, TReturn = any, TNext = any>Iterable<function (type parameter) B in <A, B>(self: Iterable<A>, that: Iterable<B>): Iterable<A | B>B>): interface Iterable<T, TReturn = any, TNext = any>Iterable<function (type parameter) A in <A, B>(self: Iterable<A>, that: Iterable<B>): Iterable<A | B>A | function (type parameter) B in <A, B>(self: Iterable<A>, that: Iterable<B>): Iterable<A | B>B> => const appendAll: <B, A>(self: Iterable<B>, that: Iterable<A>) => Iterable<A | B> (+1 overload)appendAll(that: Iterable<B>that, self: Iterable<A>self)
)Referenced by 1 symbols