diff --git a/scribblings/utils.scrbl b/scribblings/utils.scrbl index ae6c0f3..14b3512 100644 --- a/scribblings/utils.scrbl +++ b/scribblings/utils.scrbl @@ -400,6 +400,8 @@ a couple conversions. (lists-transpose '((a b) (1 2 3) (#t))) ]} +@section{Randomness} + @defproc*[([(in-random) (Sequenceof Flonum)] [(in-random [k Integer]) (Sequenceof Nonnegative-Fixnum)] [(in-random [min Integer] [max Integer]) (Sequenceof Nonnegative-Fixnum)])]{ @@ -427,6 +429,8 @@ range @racket[min] to @racket[max]-1.} (stream->list (stream-take (in-random 5 10) 5)) ]} +@section{Additional stream utilities} + @defproc[(cartesian-product-2/stream [s1 (Sequenceof a)] [s2 (Sequenceof b)]) (Sequenceof (Pair a b))]{ @@ -464,10 +468,4 @@ values of different types. (stream->list (cartesian-product/stream (list (in-range 3) (in-range 4 6) '(a b)))) ]} -@section{Functions and procedures} - -@section{Randomness} - -@section{Additional stream utilities} - @section{Boolean operations}