min
molecule.boilerplate.api.KeywordsStable.min
Minimum attribute value(s).
Apply min
keyword to attribute to return the minimum attribute value of entities matching the molecule.
for {
_ <- Person.age.insert(25, 34, 37, 42, 70)
_ <- Person.age(min).get.map(_.head ==> 25)
} yield ()
Apply min(n)
to return Vector of the n smallest values.
Person.age(min(3)).get.map(_.head ==> Vector(25, 34, 37))
Attributes
- Note
-
min
/min(n)
supports all value types (via comparators).min(n)
Can at most return the number of values that match. - Source
- Keywords.scala
- Graph
-
- Supertypes
- Known subtypes
-
object min.type
Members list
In this article