Gen < T > function ( T ... arg0 ) { Objects . requireNonNull ( arg0 , "srini_string" ) ; if ( arg0 . length == 0 ) { return Gen . fail ( "srini_string" ) ; } else { return random -> Gen . choose ( 0 , arg0 . length - 1 ) . map ( i -> arg0 [ i ] ) . apply ( random ) ; } }
chooses a value from all values in the array . concode_field_sep int FILTER_THRESHOLD concode_field_sep Gen<T> filter concode_elem_sep Gen<U> flatMap concode_elem_sep Gen<T> fail concode_elem_sep Gen<T> fail concode_elem_sep Gen<T> oneOf concode_elem_sep Gen<T> oneOf concode_elem_sep U transform concode_elem_sep T apply concode_elem_sep Gen<T> of concode_elem_sep Gen<T> of concode_elem_sep Arbitrary<T> arbitrary concode_elem_sep Gen<T> intersperse concode_elem_sep Gen<U> map concode_elem_sep Gen<T> frequency concode_elem_sep Gen<T> frequency concode_elem_sep Gen<T> peek