<lizzin>
is the nested for loop on lines 21-26 the recommended way to write that? its basically a brute force approach to finding the combo of numbers (i,j) whose result, when evaluated with the 'simulate' function, matches '19690720' on line 24
dckc has quit [Ping timeout: 265 seconds]
dckc has joined #ocaml
dborisog has quit [Ping timeout: 260 seconds]
rosterok has quit [Quit: Connection closed for inactivity]
chripell has quit [Ping timeout: 258 seconds]
Haudegen has quit [Ping timeout: 256 seconds]
Haudegen has joined #ocaml
Haudegen has quit [Read error: Connection reset by peer]
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
Haudegen has joined #ocaml
ggole has quit [Quit: Leaving]
c4rc4s_ has joined #ocaml
c4rc4s has quit [Ping timeout: 264 seconds]
c4rc4s_ is now known as c4rc4s
<reynir>
lizzin: I think that looks fine. You can also use an exception to break early from the loop in case what you want to do isn't to exit.
dump has quit [Quit: Leaving]
spew has joined #ocaml
<lizzin>
reynir: ok.
<lizzin>
reynir: i'm having trouble finding info on ocamls 'exit'. the docs and suggestions i see are all about raising Exit exceptions. happen to know which part of rwo covers 'exit'? https://dev.realworldocaml.org/toc.html
<lizzin>
nvm, i found something.
narimiran has quit [Ping timeout: 256 seconds]
sagax has quit [Remote host closed the connection]
zolk3ri has joined #ocaml
sagax has joined #ocaml
zfnmxt has left #ocaml ["WeeChat 2.8"]
noddy has quit [Ping timeout: 265 seconds]
noddy has joined #ocaml
tane has quit [Quit: Leaving]
kleisli_ has quit [Remote host closed the connection]
kleisli_ has joined #ocaml
amiloradovsky has quit [Ping timeout: 246 seconds]
Haudegen has quit [Quit: Bin weg.]
amiloradovsky has joined #ocaml
zolk3ri has quit [Remote host closed the connection]
amiloradovsky has quit [Ping timeout: 240 seconds]
spew has quit [Quit: Connection closed for inactivity]