OptionIsNormedAdditiveMonoid

com.alecdorrington.scalgebra.evidence.collection.OptionIsNormedAdditiveMonoid

Evidence that Option forms a NormedAdditiveMonoid by lifting an AdditiveSemigroup, with norm given by the number of elements (0 for None, 1 for Some).

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Algebra

Members list

Givens

Givens

given given_NormedAdditiveMonoid_Option_Int: [X] => AdditiveSemigroup[X] => given_NormedAdditiveMonoid_Option_Int[X]