effect-io-ai

Package: effect
Module: MutableList

MutableList.toArrayN

Copies up to n elements from the beginning of the MutableList into a new array without modifying the list.

When to use

Use when you need to inspect or snapshot a bounded prefix of the list without consuming it.

See

Signature

declare const toArrayN: <A>(self: MutableList<A>, n: number) => Array<A>

Source

Since v4.0.0