mbishop changed the topic of #ocaml to: Discussions about the OCaml programming language | http://caml.inria.fr/ | Grab Ocaml 3.10.0 from http://caml.inria.fr/ocaml/release.html (featuring new camlp4 and more!)
mrsolo has joined #ocaml
bluestorm has quit ["Konversation terminated!"]
mbishop has quit [Remote closed the connection]
ita has quit ["Hasta luego!"]
mbishop has joined #ocaml
mrsolo has quit ["This computer has gone to sleep"]
buluca has quit [Read error: 113 (No route to host)]
hsuh has quit [Remote closed the connection]
mrsolo has joined #ocaml
jlouis has joined #ocaml
jlouis_ has quit [Read error: 110 (Connection timed out)]
mrsolo has quit ["This computer has gone to sleep"]
mrsolo has joined #ocaml
jlouis_ has joined #ocaml
mrsolo has quit ["This computer has gone to sleep"]
jlouis has quit [Read error: 110 (Connection timed out)]
JohnnyL has quit [Read error: 110 (Connection timed out)]
nuncanada has quit ["Leaving"]
mrsolo has joined #ocaml
mrsolo has quit ["This computer has gone to sleep"]
crathman has joined #ocaml
mrsolo has joined #ocaml
mrsolo has quit ["This computer has gone to sleep"]
crathman has quit ["ChatZilla 0.9.79 [Firefox 2.0.0.11/2007112718]"]
Jeff_123 has joined #ocaml
seafood_ has joined #ocaml
Jeff_123 has quit ["Leaving."]
Jeff_123 has joined #ocaml
seafood has quit [Read error: 110 (Connection timed out)]
jlouis has joined #ocaml
seafood_ has quit []
jlouis_ has quit [Read error: 110 (Connection timed out)]
Jeff_123 has quit ["Quit"]
mrsolo has joined #ocaml
netx has quit [Remote closed the connection]
ramkrsna has joined #ocaml
seafood has joined #ocaml
buluca has joined #ocaml
mordaunt has quit [Read error: 104 (Connection reset by peer)]
brooksbp has joined #ocaml
david_koontz has quit []
rayno has quit [Remote closed the connection]
buluca has quit [Read error: 113 (No route to host)]
brooksbp_ has joined #ocaml
brooksbp has quit [Read error: 110 (Connection timed out)]
pants2 has joined #ocaml
pants2 has quit [Read error: 104 (Connection reset by peer)]
pants2 has joined #ocaml
pants2 has quit [Read error: 104 (Connection reset by peer)]
pants2 has joined #ocaml
pants2 has quit [Remote closed the connection]
pants2 has joined #ocaml
pants2 has left #ocaml []
david_koontz has joined #ocaml
brooksbp_ has quit []
Snark has joined #ocaml
jlouis_ has joined #ocaml
Mr_Awesome has joined #ocaml
jlouis has quit [Read error: 110 (Connection timed out)]
__suri has quit []
ttamttam has joined #ocaml
brooksbp has joined #ocaml
netx has joined #ocaml
ttamttam has left #ocaml []
brooksbp has quit []
buluca has joined #ocaml
rwmjones has joined #ocaml
filp has joined #ocaml
buluca has quit [No route to host]
Mr_Awesome has quit ["aunt jemima is the devil!"]
jave has joined #ocaml
ttamttam has joined #ocaml
filp has quit ["Bye"]
mrsolo has quit ["This computer has gone to sleep"]
buluca has joined #ocaml
ikaros has joined #ocaml
Snark has quit ["Quitte"]
seafood has quit []
hkBst has joined #ocaml
seafood has joined #ocaml
buluca has quit [Read error: 113 (No route to host)]
filp has joined #ocaml
marmottine has joined #ocaml
smimou has joined #ocaml
jdh30 has joined #ocaml
buluca has joined #ocaml
seafood has quit []
marmottine has quit ["Quitte"]
jdh30 has quit [Read error: 110 (Connection timed out)]
jdh30 has joined #ocaml
david_koontz_ has joined #ocaml
olleolleolle has joined #ocaml
david_koontz has quit [Read error: 110 (Connection timed out)]
mrsolo has joined #ocaml
ertai has joined #ocaml
gunark has joined #ocaml
mrsolo has quit ["This computer has gone to sleep"]
mrsolo has joined #ocaml
CRathman has joined #ocaml
bluestorm has joined #ocaml
Yoric[DT] has joined #ocaml
mrsolo has quit ["This computer has gone to sleep"]
olleolleolle has quit []
ertai has quit [No route to host]
__suri has joined #ocaml
JohnnyL has joined #ocaml
olleolleolle has joined #ocaml
marmottine has joined #ocaml
olleolleolle has quit [Client Quit]
ttamttam has left #ocaml []
bongy has joined #ocaml
<bongy> hi *, sorry for my newbie questions, i can't understand this chunk of code http://rafb.net/p/Xtjo5b64.html at line 7 there is a digit_transition invocation with two arguments whereas its definition takes one
<Yoric[DT]> hi
<bluestorm> "function" use an implicit argument
<Yoric[DT]> No, the definition actually takes two.
<Yoric[DT]> As bluestorm.
jdh30 has quit [Read error: 110 (Connection timed out)]
<Yoric[DT]> This is equivalent to http://rafb.net/p/JlMlP511.html .
<bongy> thus if there is a pattern matching in a "fuction" definition is as there are two
<bongy> parameters
<bongy> sorry maybe is not a proper pattern match
<bongy> right?
<bluestorm> hm, i do not understand what you mean
<bluestorm> the "function" keyword is always followed by a pattern matching
<bluestorm> let foo = function <pattern> is equivalent to let foo x = match x with <pattern>, as Yoric[DT] said, thus "function" add an implicit parameter
<bluestorm> (let foo x = function ... will be a two-parameter function, as in your example)
ertai has joined #ocaml
olleolleolle has joined #ocaml
olleolleolle has quit [Client Quit]
olleolleolle has joined #ocaml
ertai has quit [Read error: 113 (No route to host)]
jonathanv is now known as jonafan
pants2 has joined #ocaml
pants2 has quit [Remote closed the connection]
<bongy> bluestorm, Yoric[DT] thanks you
<Yoric[DT]> A pleasure.
pants2 has joined #ocaml
pants2 has quit [Remote closed the connection]
pants2 has joined #ocaml
FreshCat has joined #ocaml
david_koontz_ has quit []
<JohnnyL> hey guys how are you doing?
Mr_Awesome has joined #ocaml
mrsolo has joined #ocaml
david_koontz has joined #ocaml
david_koontz has left #ocaml []
ramkrsna has quit [Read error: 110 (Connection timed out)]
<Yoric[DT]> JohnnyL: tired :(
<Yoric[DT]> You ?
kelaouchi has quit [Read error: 104 (Connection reset by peer)]
kelaouchi has joined #ocaml
olleolleolle has quit []
ttamttam has joined #ocaml
<JohnnyL> i am well
<bongy> Yoric[DT], sorry http://rafb.net/p/TLW5mP27.html why?
<bluestorm> if l1 = [] then l1;
<bluestorm> no ; here
<bluestorm> if l1 = [] then l1 else if l2 = [] then ...
<bluestorm> but you could use a pattern matching instead
<bongy> yes i know
<bongy> but if I remove ; and put more if like this: let rec merge_i l1 l2 =
<bongy> if l1 = [] then l1
<bongy> if l2 = [] then l1
<bongy> if ((List.hd l1) >= (List.hd l2)) then (List.hd l2)@(merge_i l1 (List.tl l2))
<bongy> if ((List.hd l2) > (List.hd l1)) then (List.hd l1)@(merge_i l2 (List.tl l1));;
<bongy> Characters 58-60:
<bongy> if l2 = [] then l1
<bongy> ^^
<bongy> Syntax error
<bongy> why syntax error?
<bluestorm> you have to add an "else"
<bluestorm> ( with pattern matching : http://rafb.net/p/xBuZQb57.html )
<bongy> if i don't want to put an else? it's wrong?
<JohnnyL> I'm building a fundraiser.
<JohnnyL> To try to hopefully get Smerdyakov to be King of The Winter Carnival.
<JohnnyL> who is in?
<bluestorm> bongy: yes it is
<bluestorm> if/then/else expression have an else clause
<bluestorm> then (l1 if l2 = [] ...) has no meaning
<bongy> and then the else exp how i terminate a block of code?
<bluestorm> moreover, your (List.hd l2)@(merge_i l1 (List.tl l2)) won't type right
<bluestorm> bongy: exp ?
<bongy> mmm if i have a fi/then/else and then moro code...how can i write?
<bongy> no sorry bad question
<bongy> i answered my self
<bluestorm> you can force code separation with ( ... ) or begin ... end
<bluestorm> (the two ways are equivalent)
pants2 has quit [Read error: 104 (Connection reset by peer)]
ttamttam has left #ocaml []
cpst has quit []
Tetsuo has joined #ocaml
ikaros_ has joined #ocaml
asmanur has quit ["ZNC by prozac - http://znc.sourceforge.net"]
cpst has joined #ocaml
ikaros has quit [Read error: 110 (Connection timed out)]
mrsolo has left #ocaml []
mrsolo has joined #ocaml
Snark has joined #ocaml
cmeme has quit [Connection timed out]
Snark has quit ["Quitte"]
bongy has quit ["Leaving"]
robyonrails has joined #ocaml
robyonrails has quit [Read error: 104 (Connection reset by peer)]
ttamttam has joined #ocaml
ttamttam has left #ocaml []
ttamttam has joined #ocaml
ttamttam has left #ocaml []
tsuyoshi has quit [Remote closed the connection]
tsuyoshi has joined #ocaml
mrsolo has quit ["This computer has gone to sleep"]
jonafan has quit ["Leaving"]
kral has joined #ocaml
kral has left #ocaml []
jonathan has joined #ocaml
jonathan is now known as jonafan
joshcryer has quit [Connection timed out]
buluca has quit [Read error: 113 (No route to host)]
Tetsuo has quit [Remote closed the connection]
bluestorm has quit [Remote closed the connection]
FreshCat has quit ["GURU MEDITATION ERROR"]
ita has joined #ocaml
marmottine has quit ["Quitte"]
ikaros_ has quit [Remote closed the connection]
ikaros has joined #ocaml
JohnnyL has quit [Remote closed the connection]
seafood has joined #ocaml
hkBst has quit ["Konversation terminated!"]
filp has quit ["Bye"]
seafood_ has joined #ocaml
JohnnyL has joined #ocaml
Yoric[DT] has quit ["Ex-Chat"]
CRathman has quit [Read error: 110 (Connection timed out)]