RosettaCodeData/Task/Loops-While/ReScript/loops-while.res

6 lines
86 B
Text
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
let n = ref(1024)
while n.contents > 0 {
Js.log(n.contents)
n := n.contents / 2
}