From f5c762b6d86d3d77bfde9cc4c18a3202d1135eb4 Mon Sep 17 00:00:00 2001 From: Sergiu Ivanov Date: Fri, 4 Mar 2022 18:12:19 +0100 Subject: [PATCH] Fix the sectioning. --- scribblings/utils.scrbl | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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}