Module / v2.0.0-beta.13

@typed/fx/RefTuple

10 unique exports available through this public import path, including their members and aliases.

import * as RefTuple from "@typed/fx/RefTuple";

Constructors

  • make

    function

    Creates a new RefTuple from a tuple, Effect, or Fx.

Derived queries

  • appendElement

    variable

    Append an element to the end of the current state of a RefTuple.

  • get

    variable

    Projects one statically valid tuple index as Computed state.

  • length

    variable

    Get the length of the current state of a RefTuple.

  • omit

    variable

    Omit elements at specific indices from the current state of a RefTuple.

  • pick

    variable

    Pick elements at specific indices from the current state of a RefTuple.

  • prependElement

    variable

    Prepend an element to the beginning of the current state of a RefTuple.

State models

  • RefTuple

    interface

    A RefTuple is a RefSubject specialized over a tuple value.

State updates

  • setAt

    variable

    Set the value at a specific index in the current state of a RefTuple.

  • updateAt

    variable

    Update the value at a specific index in the current state of a RefTuple using a function.