cytoplasmic
    Preparing search index...

    Class CellStream<TItem, TKey>Abstract

    Common base class for collections of cells that can be mapped and filtered.

    Type Parameters

    • TItem
    • TKey

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    Methods

    • Create a stream that only includes items from this stream for which the given predicate function returns true.

      Parameters

      • f: (item: TItem) => boolean

        The predicate function to apply to items.

      Returns CellStream<TItem, TKey>

      A new stream.

    • Observe this iterable. Upon attaching an observer insert is called for each item currently contained in the underlying collection.

      Parameters

      • insert: (index: number, item: Cell<TItem>, key: TKey) => void

        An observer that is called whenever an item is inserted.

      • remove: (index: number) => void

        An observer that is called whenever an item is removed.

      Returns () => void

      A function that should be called to detach the observer functions.