molecule.boilerplate.api.Keywords.sample
Attributes
-
Source
-
Keywords.scala
-
Graph
-
-
Supertypes
-
class Object
trait Matchable
class Any
Show all
-
Self type
-
Members list
aggregates
Distinct sample values of attribute.
Apply sample(n)
to an attribute to return a Vector of up to n distinct sample values (can at most return the number of values that match).
Distinct sample values of attribute.
Apply sample(n)
to an attribute to return a Vector of up to n distinct sample values (can at most return the number of values that match).
for {
_ <- Person.age.insert(25, 34, 37, 42, 70)
_ <- Person.age(sample(3)).get.map(_.head ==> Vector(42, 25, 42)) // or other..
} yield ()
If values don't need to be distinct, random(n)
can be used also.
Attributes
-
Returns
-
List[attribute-type]
-
Note
-
Can at most return the number of values that match.
-
Inherited from:
-
sample
-
Source
-
Keywords.scala
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
-
Returns
-
a string representation of the object.
-
Definition Classes
-
Any
-
Source
-
Keywords.scala