Options
All
  • Public
  • Public/Protected
  • All
Menu

Designed to carry the transformation of Mutation.

Type parameters

  • P = any

  • C = any

Hierarchy

Index

Methods

Static of

Static ofLift

Static ofLiftBoth

Static ofLiftLeft

Static ofLiftRight

Static empty

Static lift

Static liftBoth

Static liftLeft

Static liftRight

fill

  • fill(datar: DatarOfMutator<P, C>): Mutator<P, C>

run

  • Given Atom Flow: Data A -> Mutation -> Data B

    -> Data A is observed by Mutation, Mutation is observed by Data B;

    -> Data A emits a datar, Mutation takes that datar as the 1st parameter of its inner transformation;

    -> Mutation takes datar from Data A, then emits a mutator, Data B will take that mutator;

    -> Data B takes mutator from Mutation, then pass its own datar to that mutator's transformation as the 2nd parameter;

    -> The transformation evaluates while it has both two parameters, the result will be wrapped in a new datar;

    -> The new datar of transformation's evaluate result will be the new datar of Data B.

    Parameters

    • datar: Datar<C>

      the datar to be passed to the transformation as 2nd parameter

    • Optional mutation: MutationLike<P, C>
    • Rest ...args: any[]

      the rest of the arguments (3rd and after) to be passed to the transformation

    Returns C

    Return type of transformation

Constructors

constructor

Properties

isParticle

isParticle: true

transformation

transformation: MutatorTransformation<P, C, any[]>

options

options: Required<MutatorOptions>

datar

datar: ValidDatarOfMutator<P, C>

isVain

isVain: boolean

Accessors

type

particleType

isMutator

  • get isMutator(): true

isEmpty

  • get isEmpty(): boolean