Home / Docs / Standard library / Prelude
array
Release v0.4.0Edition 0.5 preview
A function of the prelude, in scope in every module. Edition 0.5 preview.
una
pub array[T](xs: List[T]) -> Array[T]
ensures result.len == xs.lenAn array of the elements of xs, in order (spec/29 §17, ADR 0120 rule 32). O(n).
Specification
Generated from the standard modules of una v0.4.0 (docs/std/listing.json, which is not part of the specification). The specification governs: spec/14 §1.