IterableMonoid
@SerialVersionUID(0L) final
class IterableMonoid[A, SA <: IterableOps[A, Iterable, SA]](implicit cbf: Factory[A, SA]) extends Monoid[SA] with Serializable
trait Monoid[SA]
trait Semigroup[SA]
trait Serializable
class Object
trait Matchable
class Any
Value members
Concrete methods
Inherited methods
override
Return a
appended to itself n
times.
Return a
appended to itself n
times.
Example:
scala> import cats.kernel.instances.string._
scala> Monoid[String].combineN("ha", 3)
res0: String = hahaha
scala> Monoid[String].combineN("ha", 0)
res1: String = ""
- Definition Classes
- Monoid -> Semigroup
- Inherited from
- Monoid
Between each pair of elements insert middle This name matches the term used in Foldable and Reducible and a similar Haskell function.
Between each pair of elements insert middle This name matches the term used in Foldable and Reducible and a similar Haskell function.
- Inherited from
- Semigroup