lizzin has joined #ocaml
<
lizzin>
what is the idiomatic way to print an array of ints?
<
labor[m]>
There's probably a lot of idiomatic ways... I would do something like:
<
labor[m]>
Array.iter (Format.printf "%d@.") [|1;2;3|]
inkbottle has joined #ocaml
zebrag has quit [Ping timeout: 265 seconds]
fritjof has quit [Ping timeout: 246 seconds]
mfp has quit [Ping timeout: 258 seconds]
dmbaturin_ has quit [Ping timeout: 265 seconds]
dmbaturin has joined #ocaml
cantstanya has quit [Ping timeout: 240 seconds]
cantstanya has joined #ocaml
ehirdoy has quit [Ping timeout: 240 seconds]
_whitelogger has joined #ocaml
dborisog has joined #ocaml
ygrek_ has quit [Ping timeout: 256 seconds]
troydm has quit [Ping timeout: 240 seconds]
narimiran_ has joined #ocaml
mbuf has joined #ocaml
TheLemonMan has joined #ocaml
ggole has joined #ocaml
mbuf has quit [Quit: Leaving]
fritjof has joined #ocaml
chripell has joined #ocaml
amiloradovsky has joined #ocaml
Haudegen has joined #ocaml
SquidDev has quit [Quit: Bye!]
SquidDev has joined #ocaml
lizzin has quit [Ping timeout: 250 seconds]
lizzin has joined #ocaml
lizzin is now known as Guest49708
troydm has joined #ocaml
narimiran_ is now known as narimiran
mfp has joined #ocaml
fritjof has quit [Ping timeout: 256 seconds]
fritjof has joined #ocaml
minusoneplusone has joined #ocaml
mbuf has joined #ocaml
nullcone has quit [Quit: Connection closed for inactivity]
ebb has quit [Remote host closed the connection]
ebb has joined #ocaml
kvik has quit [Ping timeout: 258 seconds]
minusoneplusone has quit [Quit: Ping timeout (120 seconds)]
kvik has joined #ocaml
nullifidian__ has joined #ocaml
nullifidian_ has quit [Ping timeout: 260 seconds]
Haudegen has quit [Quit: Bin weg.]
mbuf has quit [Remote host closed the connection]
Haudegen has joined #ocaml
ygrek_ has joined #ocaml
mbuf has joined #ocaml
emias has quit [Quit: WeeChat 2.3]
jbrown has quit [Quit: Leaving]
emias has joined #ocaml
jbrown has joined #ocaml
Haudegen has quit [Quit: Bin weg.]
mbuf has quit [Quit: Leaving]
ollehar2 has joined #ocaml
<
ollehar2>
No core alternative to List.filteri ?
<
ollehar2>
So the only way to to create a reference from the outside?
chripell has quit [Ping timeout: 265 seconds]
<
ollehar2>
There's no way to get a stacktrace from OCaml?
<
ollehar2>
nvm, it's on stackoverflow
ggole has quit [Quit: Leaving]
Haudegen has joined #ocaml
kleisli_ has quit [Remote host closed the connection]
smazga has joined #ocaml
kleisli_ has joined #ocaml
kleisli_ has quit [Ping timeout: 260 seconds]
ollehar2 has quit [Quit: Connection closed]
jbrown has quit [Ping timeout: 272 seconds]
jbrown has joined #ocaml
dborisog has quit [Ping timeout: 260 seconds]
<
labor[m]>
I'm not sure I understood your question about List.filteri, but it'll be in the stdlib with the release of ocaml 4.11
Haudegen has quit [Quit: No Ping reply in 180 seconds.]
Haudegen has joined #ocaml
Haudegen has quit [Client Quit]
narimiran has quit [Ping timeout: 260 seconds]
<
Leonidas>
i am also confused because List.filteri exists in core just fine
tane has joined #ocaml
kleisli_ has joined #ocaml
jwillia3 has quit [Quit: Leaving]
abc_ has quit [Ping timeout: 256 seconds]
abc_ has joined #ocaml
jao has joined #ocaml
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
tane has quit [Quit: Leaving]
<
labor[m]>
What is confusing you ?
<
labor[m]>
In core, they defined their own List.filteri, as anyone could. The stdlib didn't before 4.11.
fritjof has quit [Ping timeout: 256 seconds]
fritjof has joined #ocaml
jwillia3 has joined #ocaml
<
Leonidas>
yeah, I don't understand ollhar2's question
smazga has quit [Quit: leaving]
ygrek_ has quit [Ping timeout: 265 seconds]
copy_ is now known as copy
copy is now known as test
test is now known as copy
oturtle has quit [Ping timeout: 256 seconds]
jbrown has quit [Ping timeout: 272 seconds]
jbrown has joined #ocaml
nullcone has joined #ocaml
porchetta has quit [Ping timeout: 265 seconds]