RosettaCodeData/Task/Loops-Break/Ol/loops-break.ol

9 lines
156 B
Text
Raw Permalink Normal View History

2019-09-12 10:33:56 -07:00
(import (otus random!))
(call/cc (lambda (break)
(let loop ()
(if (= (rand! 20) 10)
(break #t))
(print (rand! 20))
(loop))))