Skip to content

Instantly share code, notes, and snippets.

@OnurGumus
Created October 5, 2019 14:05
Show Gist options
  • Save OnurGumus/e9fb49dd084ec4714ce172c8e645f54b to your computer and use it in GitHub Desktop.
Save OnurGumus/e9fb49dd084ec4714ce172c8e645f54b to your computer and use it in GitHub Desktop.
kick start week 2 functional break
let mutable cont = true
let mutable init = 1001
while cont do
if init % 37 = 0 then
printf "%i" init
cont <- false
init <- init + 1
let rec loop init =
if init % 37 = 0 then
printf "%i" init
()
else
init + 1
|> loop
loop 1000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment