sample

molecule.boilerplate.api.Keywords.sample
object sample extends sample

Attributes

Source
Keywords.scala
Graph
Supertypes
trait sample
trait AggrKw
trait Kw
class Object
trait Matchable
class Any
Show all
Self type
sample.type

Members list

Grouped members

aggregates

def apply(n: Int): samples

Distinct sample values of attribute.

Apply sample(n) to an attribute to return a Set of up to n sample values.

Distinct sample values of attribute.

Apply sample(n) to an attribute to return a Set of up to n sample values.

for {
 _ <- Person.age.insert(25, 34, 37, 42, 70)
 _ <- Person.age(sample(3)).get.map(_.head ==> Vector(42, 25, 42)) // or other..
} yield ()

Attributes

Returns

List[attribute-type]

Note

Can at most return the number of values that match.

Inherited from:
sample
Source
Keywords.scala

Value members

Concrete methods

override def toString: String

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