effect-io-ai

Package: effect
Module: MutableList

MutableList.toArray

Copies all current elements of the MutableList into a new array without modifying the list.

When to use

Use when you need a snapshot of all current elements while keeping the list unchanged.

See

Signature

declare const toArray: <A>(self: MutableList<A>) => Array<A>

Source

Since v4.0.0