Module
Jack.Combinators
- Package
- purescript-jack
- Repository
- jystic/purescript-jack
#boundedChar Source
boundedChar :: Gen Char
Generates a 'Char'. The character is chosen from the entire range of valid 'Char' values, this is [0, 65535].
#boundedInt Source
boundedInt :: Gen Int
Generates an 'Int'. The number is chosen from the entire range of valid 'Int' values, this is [-2^31, 2^31).
#oneOfRec Source
oneOfRec :: forall a. Array (Gen a) -> Array (Gen a) -> Gen a
Randomly selects from one of the jacks in either the non-recursive or the recursive array. When a selection is made from the recursive array, the size is halved. When the size gets to one or less, selections are no longer made from the recursive array. /The first argument (i.e. the non-recursive input array) must be non-empty./