A type class saying some default value is provided for a type. This is often a convention, such as "zero" for numeric types, or "empty" for containers etc. It is used to avoid having to initialize objects with explicit default values, but care must be taken to take those conventional defaults into account.
Note that the class in no covariant in A
, as this causes selectivity
problems with, for example, Span
and SpanLike
.
- Companion:
- object
object BooleanTop.type
class DoubleTop
object DoubleTop.type
object IntTop.type
object LongTop.type
object StringTop.type
trait SeqLike[A]
trait SeqLikeEq[A]
object BooleanSeqTop.type
trait SeqLikeOrd[A]
trait SeqLikeNum[A]
object IntSeqTop.type
object LongSeqTop.type
trait SeqLikeNumFrac[A]
object DoubleSeqTop.type
trait SeqLikeNumDouble[A]
trait SeqLikeToNum[A]