FoldDef

com.phasmid.majabigwaduce.core.FoldDef
final case class FoldDef[K2, W, V2](g: (V2, W) => V2, z: () => V2) extends ReducerDef[K2, W, V2]

Definition of a Reducer_Fold (foldLeft with g from z()). NOTE z is kept as a function so that each reduction still starts from a fresh zero, exactly as Reducer_Fold's by-name parameter does.

Attributes

Graph
Supertypes
trait Product
trait Equals
trait ReducerDef[K2, W, V2]
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def behavior: Behavior[ReducerCommand[K2, W, V2]]

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product