ReduceKind

it.grypho.scala.leonardo.scalar.ReduceKind
enum ReduceKind(val word: String) extends Keyworded

Which reduction a _Reduction denotes (issue F_0037).

Two kinds, one definition: they differ only in the binary node that combines two terms and in what an empty range is worth, so _Reduction holds both facts once and the named spellings round-trip -- the _Sequence/SeqKind pattern.

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
trait Keyworded
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case Product extends ReduceKind

product(e, k, lo, hi) -- the terms multiplied; the empty product is 1.

product(e, k, lo, hi) -- the terms multiplied; the empty product is 1.

Attributes

case Sum extends ReduceKind

sum(e, k, lo, hi) -- the terms added; the empty sum is 0.

sum(e, k, lo, hi) -- the terms added; the empty sum is 0.

Attributes