Skip to content

Proposition::chooseFrom()

Jonathan Gjertsen edited this page Jun 18, 2017 · 3 revisions

Syntax

$proposition->given(Proposition::chooseFrom($array))

Provides a stream of values picked from the elements of the array.

To pick elements from the array in order, use Proposition::cycleThrough().