effect-io-ai

Package: effect
Module: List

List.prepend

Prepends the specified element to the beginning of the list.

Signature

declare const prepend: { <B>(element: B): <A>(self: List<A>) => Cons<A | B>; <A, B>(self: List<A>, element: B): Cons<A | B>; }

Source

Since v2.0.0