Module / v2.0.0-beta.7

@typed/fx/RefChunk

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

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

Constructors

  • make

    function

    Creates a new RefChunk from a Chunk, Effect, or Fx.

Derived queries

  • filterValues

    variable

    Filter the values of a RefChunk creating a Computed value.

  • mapValues

    variable

    Map the values of a RefChunk to a different type.

  • partition

    variable

    Partition the values of a RefChunk using a predicate.

  • reduce

    variable

    Reduce the values of a RefChunk to a single value.

  • reduceRight

    variable

    Reduce the values of a RefChunk in reverse order.

  • size

    variable

    Get the current size of a RefChunk.

Optional queries

  • findFirst

    variable

    Find the first value satisfying a predicate.

  • findLast

    variable

    Find the last value satisfying a predicate.

  • getIndex

    variable

    Get a value at a particular index of a RefChunk.

  • head

    variable

    Get the first element of a RefChunk as a Filtered.

  • last

    variable

    Get the last element of a RefChunk as a Filtered.

State models

  • RefChunk

    interface

    A RefChunk is a RefSubject specialized over a Chunk of values.

State predicates

  • contains

    variable

    Check if a RefChunk contains a value.

  • every

    variable

    Check if all values satisfy a predicate.

  • isEmpty

    variable

    Check if a RefChunk is empty.

  • isNonEmpty

    variable

    Check if a RefChunk is non-empty.

  • some

    variable

    Check if any value satisfies a predicate.

State updates

  • append

    variable

    Append a value to the current state of a RefChunk.

  • appendAll

    variable

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

  • dedupe

    variable

    Remove duplicate values from a RefChunk.

  • dedupeAdjacent

    variable

    Remove adjacent duplicate values from a RefChunk.

  • drop

    variable

    Drop the first n values from a RefChunk.

  • dropRight

    variable

    Drop the last n values from a RefChunk.

  • dropWhile

    variable

    Drop values from a RefChunk while a predicate is true.

  • filter

    variable

    Filter the values of a RefChunk (mutating).

  • map

    variable

    Map (Endomorphic) the values of a RefChunk.

  • modifyAt

    variable

    Modify the value at a particular index of a RefChunk.

  • prepend

    variable

    Prepend a value to the current state of a RefChunk.

  • prependAll

    variable

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

  • remove

    variable

    Remove a value at a particular index of a RefChunk.

  • replaceAt

    variable

    Replace a value at a particular index of a RefChunk.

  • reverse

    variable

    Reverse the values of a RefChunk.

  • sort

    variable

    Sort the values of a RefChunk using a provided Order.

  • take

    variable

    Take the first n values from a RefChunk.

  • takeRight

    variable

    Take the last n values from a RefChunk.

  • takeWhile

    variable

    Take values from a RefChunk while a predicate is true.