effect-io-ai

Package: effect
Module: Iterable

Iterable.prepend

Prepend an element to the front of an Iterable, creating a new Iterable.

Signature

declare const prepend: { <B>(head: B): <A>(self: Iterable<A>) => Iterable<A | B>; <A, B>(self: Iterable<A>, head: B): Iterable<A | B>; }

Source

Since v2.0.0