Zero

com.phasmid.majabigwaduce.core.Zero
See theZero companion trait
object Zero

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Zero.type

Members list

Type members

Classlikes

object DoubleZero extends DoubleZero

Attributes

Companion
trait
Supertypes
trait DoubleZero
trait Zero[Double]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
DoubleZero.type
trait DoubleZero extends Zero[Double]

A specialized implementation of the Zero type class for Double. This trait provides a zero value for the Double type.

A specialized implementation of the Zero type class for Double. This trait provides a zero value for the Double type.

Attributes

Companion
object
Supertypes
trait Zero[Double]
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
object MonoidDouble
object DoubleZero
object IntSeqZero extends SeqZero[Int]

Attributes

Supertypes
trait SeqZero[Int]
trait Zero[Seq[Int]]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
IntSeqZero.type
object IntVectorZero extends VectorZero[Int]

Attributes

Supertypes
trait VectorZero[Int]
trait Zero[Map[Int, Int]]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
object IntZero extends IntZero

Attributes

Companion
trait
Supertypes
trait IntZero
trait Zero[Int]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
IntZero.type
trait IntZero extends Zero[Int]

Attributes

Companion
object
Supertypes
trait Zero[Int]
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
object MonoidInt
object IntZero
trait SeqZero[X] extends Zero[Seq[X]]

A specialized implementation of the Zero type class for Seq[X]. This trait provides a zero (empty) value for sequences of type X.

A specialized implementation of the Zero type class for Seq[X]. This trait provides a zero (empty) value for sequences of type X.

Type parameters

X

The element type of the sequence for which the zero (empty) value is defined.

Attributes

Supertypes
trait Zero[Seq[X]]
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
object IntSeqZero
object StringZero extends StringZero

Attributes

Companion
trait
Supertypes
trait StringZero
trait Zero[String]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
StringZero.type
trait StringZero extends Zero[String]

A specialized implementation of the Zero type class for String. This trait provides a zero (empty) value for strings.

A specialized implementation of the Zero type class for String. This trait provides a zero (empty) value for strings.

Attributes

Companion
object
Supertypes
trait Zero[String]
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
object MonoidString
object StringZero
trait VectorZero[X] extends Zero[Map[Int, X]]

A specialized implementation of the Zero type class for Map[Int, X]. This trait provides a zero (empty) value for a map with key type Int and generic value type X.

A specialized implementation of the Zero type class for Map[Int, X]. This trait provides a zero (empty) value for a map with key type Int and generic value type X.

Type parameters

X

The value type of the map for which the zero (empty) instance is defined.

Attributes

Supertypes
trait Zero[Map[Int, X]]
trait Serializable
class Object
trait Matchable
class Any
Known subtypes
object IntVectorZero

Implicits

Implicits

implicit def zeroTuple[A : Zero, B : Zero]: Zero[(A, B)]