Okay, it might be more obvious how to approach the second procedure if we first consider a missing case in your first. What happens if you try to insert a real into an empty list, using your procedure?
> On Nov 27, 2016, at 3:45 PM, Ben Ghanem Anis <[email protected]> wrote: > > Hey guys, > I need some help .. > I need to write two procedures .. first one should be able to insert a real > number in the right position in a list (that is by default sorted ascending) > made of pairs (make-pair), also i need to use the procedure to write another > one that is able to sort in an ascending way a whole list of real numbers. > I already did the first step(see included shot) .. but i'm really stuck > Help! > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > <Untitled.jpg> -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

