---
title: "Prelude"
url: https://una-lang.org/en/docs/std/prelude/
release: v0.4.0
source: https://github.com/una-lang/una/blob/v0.4.0/docs/std/listing.json
---

# Prelude

The items of the prelude, which every module has in scope, one page each. Some signatures differ between editions; an item's page shows each.

Operators, comparisons, equality and interpolation are built in and not listed here ([`spec/14 §2`](https://una-lang.org/en/docs/spec/14-standard-library/#s2)). The built-in methods, `.len` and those of maps and of fixed-width integers, are on [Built-in methods](https://una-lang.org/en/docs/std/builtin/).

## By area

Unstable\, not part of the specification\: see docs\/std\/README\.md\. Hand\-written\; crates\/una\-cli\/tests\/std\_listing\.rs checks it against the listing\.

The items described in full so far, with parameters, failures, cost where stated, and an example; 31 of this module's 81 are not yet.

### Text

- [`is_digits`](https://una-lang.org/en/docs/std/prelude/is_digits/): Whether every character of `t` is an ASCII digit, so it holds of the empty text (`spec/14 §1`).
- [`starts_with`](https://una-lang.org/en/docs/std/prelude/starts_with/): Whether `t` starts with `prefix`, comparing Unicode scalar values (`spec/14 §1`).
- [`trim`](https://una-lang.org/en/docs/std/prelude/trim/): `t` without the Unicode whitespace at both ends (`spec/14 §1`).
- [`to_int`](https://una-lang.org/en/docs/std/prelude/to_int/): `Some` of the integer that `t` writes when `t` is an optional `-` followed by one or more ASCII digits, leading zeros allowed, and `None` for any other text: the empty text, `"-"`, a leading `+`, whitespace or digits outside ASCII.
- [`ParseError`](https://una-lang.org/en/docs/std/prelude/ParseError/): Why `parse_int` fails (`spec/22 §4`).
- [`split`](https://una-lang.org/en/docs/std/prelude/split/): The parts of `t` between the non-overlapping occurrences of `on`, left to right (`spec/22 §2`).
- [`join`](https://una-lang.org/en/docs/std/prelude/join/): The parts joined, with `separator` between each two (`spec/22 §2`).
- [`ends_with`](https://una-lang.org/en/docs/std/prelude/ends_with/): Whether `t` ends with `suffix` (`spec/22 §2`).
- [`contains_text`](https://una-lang.org/en/docs/std/prelude/contains_text/): Whether `part` occurs in `t` (`spec/22 §2`).
- [`find`](https://una-lang.org/en/docs/std/prelude/find/): The position of the first occurrence of `text` in `t`, `Some(0)` for an empty `text`; it is `Some` exactly when `contains_text(t, part: text)` (`spec/22 §2` rule 2).
- [`replace`](https://una-lang.org/en/docs/std/prelude/replace/): `t` with every non-overlapping occurrence of `pattern` replaced by `by`, left to right (`spec/22 §2`).
- [`slice`](https://una-lang.org/en/docs/std/prelude/slice/): The scalar values of `t` from position `start` up to, not including, `end` (`spec/22 §2`).
- [`to_upper`](https://una-lang.org/en/docs/std/prelude/to_upper/): `t` with the ASCII letters `a` to `z` in upper case (`spec/22 §3`).
- [`to_lower`](https://una-lang.org/en/docs/std/prelude/to_lower/): `t` with the ASCII letters `A` to `Z` in lower case (`spec/22 §3`).
- [`chars`](https://una-lang.org/en/docs/std/prelude/chars/): One text of length 1 per scalar value of `t`, in order (`spec/22 §2`).
- [`parse_int`](https://una-lang.org/en/docs/std/prelude/parse_int/): The integer that `t` writes, an optional `-` and one or more ASCII digits (`spec/22 §4`).
- [`trim_start`](https://una-lang.org/en/docs/std/prelude/trim_start/): `t` without Unicode white space at its start (`spec/22 §2`).
- [`trim_end`](https://una-lang.org/en/docs/std/prelude/trim_end/): `t` without Unicode white space at its end (`spec/22 §2`).
- [`bytes`](https://una-lang.org/en/docs/std/prelude/bytes/): The UTF-8 encoding of `t` (`spec/22 §2`).

### Numbers

- [`Nat`](https://una-lang.org/en/docs/std/prelude/Nat/): An `Int` that is at least zero: an `Int` flows into `Nat` where the bound is proved (`spec/14 §1`, `spec/03 §2`).
- [`abs`](https://una-lang.org/en/docs/std/prelude/abs/): The absolute value of `x` (`spec/14 §1`).
- [`min`](https://una-lang.org/en/docs/std/prelude/min/): The smaller of `a` and `b`; in edition 0.2 and later, of any type with `Ord` (`spec/14 §1`, `spec/20 §6`).
- [`max`](https://una-lang.org/en/docs/std/prelude/max/): The larger of `a` and `b`; in edition 0.2 and later, of any type with `Ord` (`spec/14 §1`, `spec/20 §6`).

### Lists

- [`is_empty`](https://una-lang.org/en/docs/std/prelude/is_empty/): Whether `xs` has no elements (`spec/14 §1`).
- [`first`](https://una-lang.org/en/docs/std/prelude/first/): `Some` of the element at position 0, and `None` exactly when `xs` is empty (`spec/14 §1`).
- [`at`](https://una-lang.org/en/docs/std/prelude/at/): `Some` of the element at position `index`, counted from 0, and `None` exactly when `index` is below `0` or at least `xs.len`; it never fails (`spec/14 §1`).
- [`append`](https://una-lang.org/en/docs/std/prelude/append/): `xs` with `item` added after its last element (`spec/14 §1`).
- [`contains`](https://una-lang.org/en/docs/std/prelude/contains/): Compares structurally; in edition 0.2 and later, over any type with `Eq` (`spec/14 §1`, `spec/20 §6`).
- [`map`](https://una-lang.org/en/docs/std/prelude/map/): The list of `each(x)` for each element `x` of `xs`, in the order of `xs`; `each` is called from the first element to the last, at most once per element.
- [`filter`](https://una-lang.org/en/docs/std/prelude/filter/): The elements `x` of `xs` for which `keep(x)` is `true`, in the order of `xs`; `keep` is called from the first element to the last, at most once per element.
- [`first_where`](https://una-lang.org/en/docs/std/prelude/first_where/): `Some` of the first element `x` of `xs` for which `keep(x)` is `true`, and `None` when there is none; `keep` is called from the first element up to that one, at most once per element, and not after it.
- [`fold`](https://una-lang.org/en/docs/std/prelude/fold/): Starts from `initial` and, for each element `x` of `xs` from the first to the last, replaces the accumulator `acc` by `step(acc, x)`, calling `step` at most once per element; the result is the last accumulator, `initial` when `xs` is empty.
- [`sum`](https://una-lang.org/en/docs/std/prelude/sum/): The exact sum of the elements as an `Int`, `0` when `xs` is empty; `Int` has no bound, so it never overflows.
- [`set`](https://una-lang.org/en/docs/std/prelude/set/): Replaces the element at `index` of `xs` with `item` (`spec/17 §8`).
- [`sort`](https://una-lang.org/en/docs/std/prelude/sort/): The elements of `xs` in ascending order, equal ones in their order in `xs` (`spec/20 §6`).

### Options and results

- [`Option`](https://una-lang.org/en/docs/std/prelude/Option/): Either `Some(value)`, which holds one value of `T`, or `None`, which holds none (`spec/14 §1`).
- [`Result`](https://una-lang.org/en/docs/std/prelude/Result/): Either `Ok(value)`, which holds the success value of `T`, or `Err(failure)`, which holds the failure of `E` (`spec/14 §1`).
- [`is_some`](https://una-lang.org/en/docs/std/prelude/is_some/): Whether `o` is `Some` (`spec/14 §1`).
- [`or_else`](https://una-lang.org/en/docs/std/prelude/or_else/): The value `v` when `o` is `Some(v)`, and `default` when `o` is `None`; `default` is an argument like any other, evaluated before the call (`spec/14 §1`).
- [`is_ok`](https://una-lang.org/en/docs/std/prelude/is_ok/): Whether `r` is `Ok` (`spec/14 §1`).

### Maps

- [`Entry`](https://una-lang.org/en/docs/std/prelude/Entry/): An entry of a map, as `entries()` lists them (`spec/21 §1` rule 4).
- [`empty_map`](https://una-lang.org/en/docs/std/prelude/empty_map/): The map with no entries, of the type its context expects (`spec/21 §2`).

### JSON

- [`is_json_number`](https://una-lang.org/en/docs/std/prelude/is_json_number/): Whether `t` is one JSON number of RFC 8259 §6 (`spec/23 §1`).
- [`JsonNumber`](https://una-lang.org/en/docs/std/prelude/JsonNumber/): The text of a JSON number with a fraction or an exponent, which `Decimal` holds (`spec/23 §1`).
- [`Json`](https://una-lang.org/en/docs/std/prelude/Json/): A JSON value (`spec/23 §1`).
- [`JsonError`](https://una-lang.org/en/docs/std/prelude/JsonError/): Why a text is not one JSON value, at the first error in reading order (`spec/23 §3`).
- [`parse_json`](https://una-lang.org/en/docs/std/prelude/parse_json/): The one JSON value of `t` (`spec/23 §3`).
- [`to_json`](https://una-lang.org/en/docs/std/prelude/to_json/): The canonical JSON text of `j` (`spec/23 §4`).
- [`quote_json`](https://una-lang.org/en/docs/std/prelude/quote_json/): `t` as a JSON string literal (`spec/23 §4` rule 2).

### Keys

- [`KeyError`](https://una-lang.org/en/docs/std/prelude/KeyError/): Why `Keys.hmac` fails: `UnknownKey`, a key name that the key file of the grant does not hold (`spec/14 §3`, `spec/13 §5`).

## Types

- [`Nat`](https://una-lang.org/en/docs/std/prelude/Nat/): An `Int` that is at least zero: an `Int` flows into `Nat` where the bound is proved (`spec/14 §1`, `spec/03 §2`). (0.1 and later)
- [`Option`](https://una-lang.org/en/docs/std/prelude/Option/): Either `Some(value)`, which holds one value of `T`, or `None`, which holds none (`spec/14 §1`). (0.1 and later)
- [`Result`](https://una-lang.org/en/docs/std/prelude/Result/): Either `Ok(value)`, which holds the success value of `T`, or `Err(failure)`, which holds the failure of `E` (`spec/14 §1`). (0.1 and later)
- [`FileError`](https://una-lang.org/en/docs/std/prelude/FileError/): Why an operation of `Files` fails (`spec/14 §3`). (0.1 and later)
- [`KeyError`](https://una-lang.org/en/docs/std/prelude/KeyError/): Why `Keys.hmac` fails: `UnknownKey`, a key name that the key file of the grant does not hold (`spec/14 §3`, `spec/13 §5`). (0.1 and later)
- [`Entry`](https://una-lang.org/en/docs/std/prelude/Entry/): An entry of a map, as `entries()` lists them (`spec/21 §1` rule 4). (0.2 and later)
- [`JsonNumber`](https://una-lang.org/en/docs/std/prelude/JsonNumber/): The text of a JSON number with a fraction or an exponent, which `Decimal` holds (`spec/23 §1`). (0.2 and later)
- [`Json`](https://una-lang.org/en/docs/std/prelude/Json/): A JSON value (`spec/23 §1`). (0.2 and later)
- [`JsonError`](https://una-lang.org/en/docs/std/prelude/JsonError/): Why a text is not one JSON value, at the first error in reading order (`spec/23 §3`). (0.2 and later)
- [`ParseError`](https://una-lang.org/en/docs/std/prelude/ParseError/): Why `parse_int` fails (`spec/22 §4`). (0.2 and later)
- [`Header`](https://una-lang.org/en/docs/std/prelude/Header/): A header of an HTTP request or response (`spec/24 §1`). (0.2 and later)
- [`Response`](https://una-lang.org/en/docs/std/prelude/Response/): An HTTP response, whatever its status (`spec/24 §1` rule 3). (0.2 and later)
- [`HttpError`](https://una-lang.org/en/docs/std/prelude/HttpError/): Why an HTTP request got no response it may return (`spec/24 §1` rule 3). (0.2 and later)
- [`Rounding`](https://una-lang.org/en/docs/std/prelude/Rounding/): How a decimal operation rounds an exact value to the units of its result's scale (`spec/29 §16`): on the magnitude, then the sign. (0.5 preview)
- [`Finite64`](https://una-lang.org/en/docs/std/prelude/Finite64/): An `F64` that is neither NaN nor an infinity (`spec/29 §18`, ADR 0120 rule 11). (0.5 preview)
- [`Finite32`](https://una-lang.org/en/docs/std/prelude/Finite32/): An `F32` that is neither NaN nor an infinity (`spec/29 §18`, ADR 0120 rule 11). (0.5 preview)

## Capabilities

- [`Console`](https://una-lang.org/en/docs/std/prelude/Console/): Writes lines to standard output: `print` writes the line and a newline. (0.1 and later)
- [`Clock`](https://una-lang.org/en/docs/std/prelude/Clock/): Reads the time: `now` gives the milliseconds since the Unix epoch. (0.1 and later)
- [`Env`](https://una-lang.org/en/docs/std/prelude/Env/): Reads a process environment variable, as `internal` text. (0.1 and later)
- [`Files`](https://una-lang.org/en/docs/std/prelude/Files/): Reads and writes files, with paths relative to the prefix the grant fixes; each operation can fail with `FileError` (`spec/14 §3`). (0.1 and later)
- [`Keys`](https://una-lang.org/en/docs/std/prelude/Keys/): Computes an HMAC-SHA-256 with a named key of the grant's key file, as `internal` `Hashed`. (0.1 and later)
- [`Http`](https://una-lang.org/en/docs/std/prelude/Http/): HTTP/1.1 to the origins that `http:` grants allow (`spec/24 §1`). (0.2 and later)

## Functions

- [`abs`](https://una-lang.org/en/docs/std/prelude/abs/): The absolute value of `x` (`spec/14 §1`). (0.1 and later)
- [`min`](https://una-lang.org/en/docs/std/prelude/min/): The smaller of `a` and `b`; in edition 0.2 and later, of any type with `Ord` (`spec/14 §1`, `spec/20 §6`). (0.1 and later)
- [`max`](https://una-lang.org/en/docs/std/prelude/max/): The larger of `a` and `b`; in edition 0.2 and later, of any type with `Ord` (`spec/14 §1`, `spec/20 §6`). (0.1 and later)
- [`is_digits`](https://una-lang.org/en/docs/std/prelude/is_digits/): Whether every character of `t` is an ASCII digit, so it holds of the empty text (`spec/14 §1`). (0.1 and later)
- [`starts_with`](https://una-lang.org/en/docs/std/prelude/starts_with/): Whether `t` starts with `prefix`, comparing Unicode scalar values (`spec/14 §1`). (0.1 and later)
- [`trim`](https://una-lang.org/en/docs/std/prelude/trim/): `t` without the Unicode whitespace at both ends (`spec/14 §1`). (0.1 and later)
- [`to_int`](https://una-lang.org/en/docs/std/prelude/to_int/): `Some` of the integer that `t` writes when `t` is an optional `-` followed by one or more ASCII digits, leading zeros allowed, and `None` for any other text: the empty text, `"-"`, a leading `+`, whitespace or digits outside ASCII. (0.1 and later)
- [`is_empty`](https://una-lang.org/en/docs/std/prelude/is_empty/): Whether `xs` has no elements (`spec/14 §1`). (0.1 and later)
- [`first`](https://una-lang.org/en/docs/std/prelude/first/): `Some` of the element at position 0, and `None` exactly when `xs` is empty (`spec/14 §1`). (0.1 and later)
- [`at`](https://una-lang.org/en/docs/std/prelude/at/): `Some` of the element at position `index`, counted from 0, and `None` exactly when `index` is below `0` or at least `xs.len`; it never fails (`spec/14 §1`). (0.1 and later)
- [`append`](https://una-lang.org/en/docs/std/prelude/append/): `xs` with `item` added after its last element (`spec/14 §1`). (0.1 and later)
- [`contains`](https://una-lang.org/en/docs/std/prelude/contains/): Compares structurally; in edition 0.2 and later, over any type with `Eq` (`spec/14 §1`, `spec/20 §6`). (0.1 and later)
- [`map`](https://una-lang.org/en/docs/std/prelude/map/): The list of `each(x)` for each element `x` of `xs`, in the order of `xs`; `each` is called from the first element to the last, at most once per element. (0.1 and later)
- [`filter`](https://una-lang.org/en/docs/std/prelude/filter/): The elements `x` of `xs` for which `keep(x)` is `true`, in the order of `xs`; `keep` is called from the first element to the last, at most once per element. (0.1 and later)
- [`first_where`](https://una-lang.org/en/docs/std/prelude/first_where/): `Some` of the first element `x` of `xs` for which `keep(x)` is `true`, and `None` when there is none; `keep` is called from the first element up to that one, at most once per element, and not after it. (0.1 and later)
- [`fold`](https://una-lang.org/en/docs/std/prelude/fold/): Starts from `initial` and, for each element `x` of `xs` from the first to the last, replaces the accumulator `acc` by `step(acc, x)`, calling `step` at most once per element; the result is the last accumulator, `initial` when `xs` is empty. (0.1 and later)
- [`sum`](https://una-lang.org/en/docs/std/prelude/sum/): The exact sum of the elements as an `Int`, `0` when `xs` is empty; `Int` has no bound, so it never overflows. (0.1 and later)
- [`is_some`](https://una-lang.org/en/docs/std/prelude/is_some/): Whether `o` is `Some` (`spec/14 §1`). (0.1 and later)
- [`or_else`](https://una-lang.org/en/docs/std/prelude/or_else/): The value `v` when `o` is `Some(v)`, and `default` when `o` is `None`; `default` is an argument like any other, evaluated before the call (`spec/14 §1`). (0.1 and later)
- [`is_ok`](https://una-lang.org/en/docs/std/prelude/is_ok/): Whether `r` is `Ok` (`spec/14 §1`). (0.1 and later)
- [`set`](https://una-lang.org/en/docs/std/prelude/set/): Replaces the element at `index` of `xs` with `item` (`spec/17 §8`). (0.2 and later)
- [`sort`](https://una-lang.org/en/docs/std/prelude/sort/): The elements of `xs` in ascending order, equal ones in their order in `xs` (`spec/20 §6`). (0.2 and later)
- [`empty_map`](https://una-lang.org/en/docs/std/prelude/empty_map/): The map with no entries, of the type its context expects (`spec/21 §2`). (0.2 and later)
- [`parse_json`](https://una-lang.org/en/docs/std/prelude/parse_json/): The one JSON value of `t` (`spec/23 §3`). (0.2 and later)
- [`to_json`](https://una-lang.org/en/docs/std/prelude/to_json/): The canonical JSON text of `j` (`spec/23 §4`). (0.2 and later)
- [`quote_json`](https://una-lang.org/en/docs/std/prelude/quote_json/): `t` as a JSON string literal (`spec/23 §4` rule 2). (0.2 and later)
- [`split`](https://una-lang.org/en/docs/std/prelude/split/): The parts of `t` between the non-overlapping occurrences of `on`, left to right (`spec/22 §2`). (0.2 and later)
- [`join`](https://una-lang.org/en/docs/std/prelude/join/): The parts joined, with `separator` between each two (`spec/22 §2`). (0.2 and later)
- [`ends_with`](https://una-lang.org/en/docs/std/prelude/ends_with/): Whether `t` ends with `suffix` (`spec/22 §2`). (0.2 and later)
- [`contains_text`](https://una-lang.org/en/docs/std/prelude/contains_text/): Whether `part` occurs in `t` (`spec/22 §2`). (0.2 and later)
- [`find`](https://una-lang.org/en/docs/std/prelude/find/): The position of the first occurrence of `text` in `t`, `Some(0)` for an empty `text`; it is `Some` exactly when `contains_text(t, part: text)` (`spec/22 §2` rule 2). (0.2 and later)
- [`replace`](https://una-lang.org/en/docs/std/prelude/replace/): `t` with every non-overlapping occurrence of `pattern` replaced by `by`, left to right (`spec/22 §2`). (0.2 and later)
- [`slice`](https://una-lang.org/en/docs/std/prelude/slice/): The scalar values of `t` from position `start` up to, not including, `end` (`spec/22 §2`). (0.2 and later)
- [`to_upper`](https://una-lang.org/en/docs/std/prelude/to_upper/): `t` with the ASCII letters `a` to `z` in upper case (`spec/22 §3`). (0.2 and later)
- [`to_lower`](https://una-lang.org/en/docs/std/prelude/to_lower/): `t` with the ASCII letters `A` to `Z` in lower case (`spec/22 §3`). (0.2 and later)
- [`chars`](https://una-lang.org/en/docs/std/prelude/chars/): One text of length 1 per scalar value of `t`, in order (`spec/22 §2`). (0.2 and later)
- [`parse_int`](https://una-lang.org/en/docs/std/prelude/parse_int/): The integer that `t` writes, an optional `-` and one or more ASCII digits (`spec/22 §4`). (0.2 and later)
- [`trim_start`](https://una-lang.org/en/docs/std/prelude/trim_start/): `t` without Unicode white space at its start (`spec/22 §2`). (0.2 and later)
- [`trim_end`](https://una-lang.org/en/docs/std/prelude/trim_end/): `t` without Unicode white space at its end (`spec/22 §2`). (0.2 and later)
- [`bytes`](https://una-lang.org/en/docs/std/prelude/bytes/): The UTF-8 encoding of `t` (`spec/22 §2`). (0.2 and later)
- [`nan`](https://una-lang.org/en/docs/std/prelude/nan/): The canonical NaN, `0x7FF8000000000000`: the one NaN of `F64` (`spec/29 §3`). (0.3, 0.4, 0.5 preview)
- [`infinity`](https://una-lang.org/en/docs/std/prelude/infinity/): The positive infinity of `F64`; `-infinity()` is the negative one (`spec/29 §3`). (0.3, 0.4, 0.5 preview)
- [`f64_from_bits`](https://una-lang.org/en/docs/std/prelude/f64_from_bits/): The `F64` with the bits `bits`; any NaN gives the canonical NaN (`spec/29 §3`). (0.3, 0.4, 0.5 preview)
- [`parse_f64`](https://una-lang.org/en/docs/std/prelude/parse_f64/): The `F64` that `t` writes, a JSON number, `nan`, `inf` or `-inf`, correctly rounded, or why it writes none (`spec/29 §7`). (0.3, 0.4, 0.5 preview)
- [`as_f64`](https://una-lang.org/en/docs/std/prelude/as_f64/): The `F64` nearest a JSON number, `None` for any other `Json` (`spec/29 §10`). (0.3, 0.4, 0.5 preview)
- [`json_number`](https://una-lang.org/en/docs/std/prelude/json_number/): `x` as a JSON number, `None` for NaN and the infinities (`spec/29 §10`). (0.3, 0.4, 0.5 preview)
- [`parse_decimal`](https://una-lang.org/en/docs/std/prelude/parse_decimal/): The `Decimal[s]` that `t` writes at the scale `s` of the literal `scale`, or why it writes none (`spec/29 §16`). (0.5 preview)
- [`as_decimal`](https://una-lang.org/en/docs/std/prelude/as_decimal/): The `Decimal[s]` of a JSON number at the scale `s` of the literal `scale`, `None` when it has no exact value there, and for any other `Json` (`spec/29 §16`). (0.5 preview)
- [`json_decimal`](https://una-lang.org/en/docs/std/prelude/json_decimal/): A `Decimal[s]` as a JSON number: `Number` at scale 0, `Decimal` otherwise (`spec/29 §16`). (0.5 preview)
- [`array`](https://una-lang.org/en/docs/std/prelude/array/): An array of the elements of `xs`, in order (`spec/29 §17`, ADR 0120 rule 32). (0.5 preview)
- [`array_filled`](https://una-lang.org/en/docs/std/prelude/array_filled/): An array of `length` elements, each `value` (`spec/29 §17`). (0.5 preview)
- [`matrix`](https://una-lang.org/en/docs/std/prelude/matrix/): A matrix of `rows` rows and `columns` columns, the elements of `elements` in row-major order (`spec/29 §17`). (0.5 preview)
- [`matrix_filled`](https://una-lang.org/en/docs/std/prelude/matrix_filled/): A matrix of `rows` rows and `columns` columns, each element `value` (`spec/29 §17`). (0.5 preview)
- [`matrix_diagonal`](https://una-lang.org/en/docs/std/prelude/matrix_diagonal/): The square matrix with `values` on its diagonal and `+0` of the element type elsewhere (`spec/29 §17`). (0.5 preview)
- [`tensor`](https://una-lang.org/en/docs/std/prelude/tensor/): A tensor of the lengths in `shape`, a list literal of 1 to 8 of them, with the elements of `elements` in row-major order (`spec/29 §17`). (0.5 preview)
- [`tensor_filled`](https://una-lang.org/en/docs/std/prelude/tensor_filled/): A tensor of the lengths in `shape`, a list literal of 1 to 8 of them, each element `value` (`spec/29 §17`): `requires` every length `>= 0`, `ensures` the rank and the lengths, as for `tensor`. (0.5 preview)
- [`f32_from_bits`](https://una-lang.org/en/docs/std/prelude/f32_from_bits/): The `F32` with the bits `bits`; any NaN gives the canonical NaN `0x7FC00000` (`spec/29 §18`, ADR 0120 rule 5). (0.5 preview)
- [`parse_f32`](https://una-lang.org/en/docs/std/prelude/parse_f32/): The `F32` that `t` writes, a JSON number, `nan`, `inf` or `-inf`, rounded once to the nearest `F32`, or why it writes none (`spec/29 §18`, ADR 0120 rule 5). (0.5 preview)

## Predicates

- [`is_json_number`](https://una-lang.org/en/docs/std/prelude/is_json_number/): Whether `t` is one JSON number of RFC 8259 §6 (`spec/23 §1`). (0.2 and later)

Generated from the standard modules of una v0.4.0 ([`docs/std/listing.json`](https://github.com/una-lang/una/blob/5fec93d88932b333feec25e589355a2cb34c37b5/docs/std/listing.json), which is not part of the specification). The specification governs: [`spec/14 §1`](https://una-lang.org/en/docs/spec/14-standard-library/#s1).
