Taaus changed the topic of #ocaml to: http://caml.inria.fr/oreilly-book/
johs has quit [carter.openprojects.net irc.openprojects.net]
olczyk has joined #ocaml
<olczyk> Anyone out there who's read "Tackling the Awkward Squad"?
ric-elm has joined #ocaml
<ric-elm> the o'reilly book is DoSed
<ric-elm> can anyone DCC it to me?
<ric-elm> AAAGAGAGAGA :-(
<ric-elm> I want my boooooooooook
<ric-elm> facking bastards
<ric-elm> talk to me NOW
<ric-elm> you can't ignore me this long
<ric-elm> I hate yooooooooooooooou
<ric-elm> does anyone know were can I get mute porn?
<ric-elm> I don't have sound card, only video card
<ric-elm> and the porno movies I download are too big
<ric-elm> because they contain sound
<ric-elm> how can dispra.......
ric-elm has left #ocaml []
olczyk has quit [Read error: 113 (No route to host)]
clog has joined #ocaml
Taaus has quit [carter.openprojects.net irc.openprojects.net]
skylan has quit [carter.openprojects.net irc.openprojects.net]
skylan has joined #ocaml
Taaus has joined #ocaml
scipient has quit [carter.openprojects.net irc.openprojects.net]
smkl has quit [carter.openprojects.net irc.openprojects.net]
illume has quit [carter.openprojects.net irc.openprojects.net]
illume has joined #ocaml
scipient has joined #ocaml
smkl has joined #ocaml
smkl has quit [carter.openprojects.net irc.openprojects.net]
Taaus has quit [carter.openprojects.net irc.openprojects.net]
skylan has quit [carter.openprojects.net irc.openprojects.net]
Taaus has joined #ocaml
skylan has joined #ocaml
smkl has joined #ocaml
Yurik has joined #ocaml
slyl has joined #ocaml
slyl has quit [Client Quit]
Yurik has quit ["Client Exiting"]
Yurik has joined #ocaml
lypanov has joined #ocaml
lypanov is now known as lypHidden
lypHidden is now known as lypHiding
gl has joined #ocaml
Yurik has quit ["bb all"]
gl has quit ["La foule est une somme d'erreurs qu'il faut corriger"]
lypHiding has left #ocaml []
olczyk has joined #ocaml
Demitar has joined #ocaml
<Demitar> Anyone alive?
jao has joined #ocaml
<smkl> me ...
<Demitar> Well if I want to scan an array for a value and then return in how would I do? I obviously cannot use Array.iter/map and using an imperative for loop doesn't seem to be nice (especially not if I'd switch to a list).
<smkl> return index?
olczyk has quit [Read error: 113 (No route to host)]
<Demitar> No I want to return the value of a pair actually (I should use hash or something but want to know how to do this with a functional approach).
<smkl> arrays aren't really functional
<smkl> anyway, you can fold arrays just like lists: let leftmost pred arr = Array.fold_right (fun el acc -> if pred el t then Some el else acc) arr None
<smkl> if you want to be more efficient you need to write the recursion yourself
<Demitar> Perhaps I should switch to a list then... *ponder*
demitar_ has joined #ocaml
Demitar has quit []
demitar_ has quit [Read error: 104 (Connection reset by peer)]
Demitar has joined #ocaml
<Demitar> Aaah, much better...
tav` has joined #ocaml
tav` has quit [Read error: 104 (Connection reset by peer)]
tav has joined #ocaml
Demitar has quit [No route to host]
Demitar has joined #ocaml
lsr has joined #ocaml
<Demitar> What introspective features does ocaml have? Eg if I want to persist an object.
<smkl> for some reason, marshalling doesn't work for objects in ocaml. it works for any other kind of value
Demitar has quit [carter.openprojects.net irc.openprojects.net]
tav has quit [carter.openprojects.net irc.openprojects.net]
Demitar has joined #ocaml
tav has joined #ocaml
tav has quit [Excess Flood]
Demitar has quit [carter.openprojects.net irc.openprojects.net]
Demitar has joined #ocaml
tav has joined #ocaml
<Demitar> Hmm... can I match something with a variable?
<smkl> if you try to do "match y with x -> ..." then x will just be bound to y. you have to do "match y with z where z = x -> ..."
Taaus_ has joined #ocaml
Taaus has quit [Read error: 104 (Connection reset by peer)]
lsr has quit ["brb"]
<Demitar> Thanks.
Demitar has quit [carter.openprojects.net irc.openprojects.net]
Demitar has joined #ocaml