Zero

com.phasmid.majabigwaduce.core.Zero
See theZero companion object
trait Zero[X] extends Serializable

Type-class Zero is used to add behavior of initialization (or zeroing) of X.

NOTE Zero is Serializable because a fold's zero travels with its reducer when the reducer runs on another node of a cluster (see doc/Clustering.md).

Type parameters

X

the type which we want to create a zero value for.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
trait Monoid[X]
object MonoidDouble
object MonoidInt
object MonoidString
trait IterableMonoid[T]
trait DoubleZero
object DoubleZero
trait IntZero
object IntZero
trait SeqZero[X]
object IntSeqZero
trait StringZero
object StringZero
trait VectorZero[X]
object IntVectorZero
Show all

Members list

Value members

Abstract methods

def zero: X

Method to create a zero/empty/nothing value of X

Method to create a zero/empty/nothing value of X

Attributes

Returns

an X which is zero (empty, etc.)