scalax.data

trait MonoidWithPlus

[source: scalax/data/MonoidWithPlus.scala]

trait MonoidWithPlus[A]
extends AnyRef
Type-class for monoids, where the operation looks like addition.
Direct Known Subclasses:
Implicits.IntProps, Implicits.LongProps, Implicits.DoubleProps

Method Summary
abstract def plus (a : A, b : A) : A
abstract def zero : A
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
abstract def plus(a : A, b : A) : A

abstract def zero : A


Copyright (c) 2005-8 The Scalax Project. All Rights Reserved.