Open
Description
Is there a reason not to expose the intercalate
method directly on the Semigroup
object?
object Semigroup {
@inline def intercalate[A](sep: A)(implicit ev: Semigroup[A]): Semigroup[A] =
ev.intercalate(sep)
}
It provides some type inference convenience in that we can now write Semigroup.intercalate(";")
, for example, instead of Semigroup[String].intercalate(";")
.
Am I missing something or is it just an oversight?
Metadata
Assignees
Labels
No labels