scalax.rules

trait StateReader

[source: scalax/rules/StateReader.scala]

trait StateReader
extends Monads
Type Summary
abstract type S
Method Summary
abstract def get : M[S]
abstract def read [A](f : (S) => A) : M[A]
abstract def set (s : => S) : M[S]
abstract def update (f : (S) => S) : M[S]
Methods inherited from UnitFunctors
unit, unit
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Type Details
abstract type S

Method Details
abstract def get : M[S]

abstract def read[A](f : (S) => A) : M[A]

abstract def set(s : => S) : M[S]

abstract def update(f : (S) => S) : M[S]


Copyright (c) 2005-8 The Scalax Project. All Rights Reserved.