Module / v2.0.0-beta.13

@typed/fx/RefIterable

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

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

Constructors

  • make

    function

    Creates a new RefIterable from an Iterable, Effect, or Fx.

Derived queries

  • countBy

    variable

    Count elements satisfying a predicate.

  • filterValues

    variable

    Filter the values of a RefIterable creating a Computed value.

  • groupBy

    variable

    Group the values of a RefIterable by a key.

  • mapValues

    variable

    Map the values of a RefIterable to a different type.

  • reduce

    variable

    Reduce the values of a RefIterable to a single value.

  • size

    variable

    Get the current size of a RefIterable.

  • toArray

    variable

    Convert to array.

Optional queries

  • findFirst

    variable

    Find the first value satisfying a predicate.

  • findLast

    variable

    Find the last value satisfying a predicate.

  • head

    variable

    Get the first element of a RefIterable as a Filtered.

State models

  • RefIterable

    interface

    A RefIterable is a RefSubject specialized over an Iterable of values.

State predicates

  • contains

    variable

    Check if a RefIterable contains a value.

  • isEmpty

    variable

    Check if a RefIterable is empty.

  • some

    variable

    Check if any value satisfies a predicate.

State updates

  • append

    variable

    Append a value to the current state of a RefIterable.

  • appendAll

    variable

    Append an iterable of values to the current state of a RefIterable.

  • dedupeAdjacent

    variable

    Remove adjacent duplicate values from a RefIterable.

  • drop

    variable

    Drop the first n values from a RefIterable.

  • filter

    variable

    Filter the values of a RefIterable (mutating).

  • filterMap

    variable

    Filter and map values in place.

  • flatMap

    variable

    FlatMap (endomorphic).

  • getSomes

    variable

    Extract Some values from Option iterable.

  • intersperse

    variable

    Intersperse a separator between elements.

  • map

    variable

    Map (Endomorphic) the values of a RefIterable.

  • prepend

    variable

    Prepend a value to the current state of a RefIterable.

  • prependAll

    variable

    Prepend an iterable of values to the current state of a RefIterable.

  • repeat

    variable

    Repeat the iterable n times.

  • take

    variable

    Take the first n values from a RefIterable.

  • takeWhile

    variable

    Take values from a RefIterable while a predicate is true.