Write a procedure in Racket that act like the "while loops" in languages like Java. A while loop takes two pieces of code to run: a condition and a body. it runs the body, then tries the condition again, running the body again if it's true. This continues until the condition returns false.
this is how I started on it: then I got stuck.
(define (while condition body)
(when (true? condition)
(cons (proc body) (proc (rest body)))