Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Stream<A>

A stream is a list of occurences over time. Each occurence happens at a discrete point in time and has an associated value. Semantically it is a list type Stream<A> = [Time, A].

Type parameters

  • A

Hierarchy

Index

Constructors

constructor

Properties

child

child: Consumer<A>

nrOfListeners

nrOfListeners: number

Methods

addListener

filter

  • filter(fn: function): Stream<A>
  • Parameters

    • fn: function
        • (a: A): boolean
        • Parameters

          • a: A

          Returns boolean

    Returns Stream<A>

map

  • map<B>(fn: function): Stream<B>
  • Type parameters

    • B

    Parameters

    • fn: function
        • (a: A): B
        • Parameters

          • a: A

          Returns B

    Returns Stream<B>

mapTo

merge

push

  • push(a: any): void

removeListener

  • removeListener(listener: Consumer<any>): void

scan

  • Type parameters

    • B

    Parameters

    • fn: function
        • (a: A, b: B): B
        • Parameters

          • a: A
          • b: B

          Returns B

    • init: B

    Returns Behavior<Behavior<B>>

scanS

  • Type parameters

    • B

    Parameters

    • fn: function
        • (a: A, b: B): B
        • Parameters

          • a: A
          • b: B

          Returns B

    • startingValue: B

    Returns Behavior<Stream<B>>

subscribe

Generated using TypeDoc