object Monoid extends MonoidFunctions[Monoid] with Serializable
- Source
- Monoid.scala
- Alphabetic
- By Inheritance
- Monoid
- Serializable
- Serializable
- MonoidFunctions
- SemigroupFunctions
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
apply[A](implicit ev: Monoid[A]): Monoid[A]
Access an implicit
Monoid[A]
.Access an implicit
Monoid[A]
.- Annotations
- @inline()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @IntrinsicCandidate()
-
def
combine[A](x: A, y: A)(implicit ev: Monoid[A]): A
- Definition Classes
- SemigroupFunctions
-
def
combineAll[A](as: IterableOnce[A])(implicit ev: Monoid[A]): A
- Definition Classes
- MonoidFunctions
-
def
combineAllOption[A](as: IterableOnce[A])(implicit ev: Monoid[A]): Option[A]
- Definition Classes
- SemigroupFunctions
-
def
combineN[A](a: A, n: Int)(implicit ev: Monoid[A]): A
- Definition Classes
- SemigroupFunctions
-
def
empty[A](implicit ev: Monoid[A]): A
- Definition Classes
- MonoidFunctions
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
-
def
instance[A](emptyValue: A, cmb: (A, A) ⇒ A): Monoid[A]
Create a
Monoid
instance from the given function and empty value.Create a
Monoid
instance from the given function and empty value.- Annotations
- @inline()
-
def
isCommutative[A](implicit ev: Monoid[A]): Boolean
- Definition Classes
- SemigroupFunctions
-
def
isEmpty[A](a: A)(implicit m: Monoid[A], ev: Eq[A]): Boolean
- Definition Classes
- MonoidFunctions
-
def
isIdempotent[A](implicit ev: Monoid[A]): Boolean
- Definition Classes
- SemigroupFunctions
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
maybeCombine[A](x: A, oy: Option[A])(implicit ev: Monoid[A]): A
- Definition Classes
- SemigroupFunctions
-
def
maybeCombine[A](ox: Option[A], y: A)(implicit ev: Monoid[A]): A
- Definition Classes
- SemigroupFunctions
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )