sum

molecule.boilerplate.api.KeywordsStable.sum
trait sum extends AggrCoalesce

Sum of attribute values.

Apply sum keyword to attribute to return sum of attribute values of entities matching the molecule.

for {
 _ <- Match.sKeywords.insert(1, 2, 4)
 _ <- Match.score(sum).get.map(_.head ==> 7)
} yield ()

Attributes

Returns

Value of Attribute type

Source
Keywords.scala
Graph
Supertypes
trait AggrCoalesce
trait AggrKw
trait Kw
class Object
trait Matchable
class Any
Show all
Known subtypes
object sum.type
In this article