State<S, A> class

Implemented types

Constructors

State(Function1<S, Tuple2<A, S>> _run)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

andThen<B>(covariant State<S, B> next) State<S, B>
override
ap<B>(covariant State<S, Function1<A, B>> ff) State<S, B>
override
bind<B>(covariant Function1<A, State<S, B>> f) State<S, B>
override
flatMap<B>(covariant Function1<A, State<S, B>> f) State<S, B>
override
map<B>(B f(A a)) State<S, B>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pure<B>(B b) State<S, B>
replace<B>(B replacement) State<S, B>
override
run(S s) Tuple2<A, S>
state(S s) → S
strengthL<B>(B b) State<S, Tuple2<B, A>>
override
strengthR<B>(B b) State<S, Tuple2<A, B>>
override
toString() String
A string representation of this object.
inherited
value(S s) → A

Operators

operator ==(Object other) bool
The equality operator.
inherited