schme has quit [farmer.freenode.net irc.freenode.net]
jlouis_ has quit [farmer.freenode.net irc.freenode.net]
thelema has quit [farmer.freenode.net irc.freenode.net]
thelema has joined #ocaml
Pimm has joined #ocaml
schme has joined #ocaml
jlouis_ has joined #ocaml
schme has quit [farmer.freenode.net irc.freenode.net]
jlouis_ has quit [farmer.freenode.net irc.freenode.net]
<munga_>
I remember that once upon a time the module Map had a split function ... why was it removed ? how can I get all bindings in a Map whose keys lies in an give interval ?
schme has joined #ocaml
jlouis_ has joined #ocaml
<Camarade_Tux>
munga_: the Set module has it, maybe you had that in mind?
_unK has joined #ocaml
<munga_>
Camarade_Tux, not quite ... I want a map :)
<Camarade_Tux>
yeah, I meant: the function may have never existed and you remembered it from Set ;-)
tensorpudding has quit [farmer.freenode.net irc.freenode.net]
Amorphous has quit [farmer.freenode.net irc.freenode.net]
hyperboreean has quit [farmer.freenode.net irc.freenode.net]
nimred has quit [farmer.freenode.net irc.freenode.net]
infoe_ has quit [farmer.freenode.net irc.freenode.net]
lanaer has quit [farmer.freenode.net irc.freenode.net]
Mr_Awesome has quit [farmer.freenode.net irc.freenode.net]
Leonidas has quit [farmer.freenode.net irc.freenode.net]
mrvn has quit [farmer.freenode.net irc.freenode.net]
shr3kst3r has quit [farmer.freenode.net irc.freenode.net]
acatout has quit [farmer.freenode.net irc.freenode.net]
Camarade_Tux has quit [farmer.freenode.net irc.freenode.net]
_unK has quit [farmer.freenode.net irc.freenode.net]
munga_ has quit [farmer.freenode.net irc.freenode.net]
det has quit [farmer.freenode.net irc.freenode.net]
tab_ has quit [farmer.freenode.net irc.freenode.net]
tonyIII has quit [farmer.freenode.net irc.freenode.net]
jknick has quit [farmer.freenode.net irc.freenode.net]
noj has quit [farmer.freenode.net irc.freenode.net]
safire has quit [farmer.freenode.net irc.freenode.net]
acatout has joined #ocaml
mrvn has joined #ocaml
shr3kst3r has joined #ocaml
Camarade_Tux has joined #ocaml
tensorpudding has joined #ocaml
Amorphous has joined #ocaml
Leonidas has joined #ocaml
Mr_Awesome has joined #ocaml
hyperboreean has joined #ocaml
nimred has joined #ocaml
lanaer has joined #ocaml
infoe_ has joined #ocaml
_unK has joined #ocaml
munga_ has joined #ocaml
jknick has joined #ocaml
det has joined #ocaml
noj has joined #ocaml
tab_ has joined #ocaml
safire has joined #ocaml
tonyIII has joined #ocaml
ulfdoz has quit ["deprecated"]
tmaeda is now known as tmaedaZ
tmaedaZ is now known as tmaeda
ski_ has quit ["Lost terminal"]
ikaros has joined #ocaml
schme has quit [farmer.freenode.net irc.freenode.net]
jlouis_ has quit [farmer.freenode.net irc.freenode.net]
Associat0r has joined #ocaml
ulfdoz has joined #ocaml
Alpounet has joined #ocaml
schme has joined #ocaml
jlouis_ has joined #ocaml
hcarty has joined #ocaml
pad has joined #ocaml
Yoric has quit []
ikaros has quit ["Leave the magic to Houdini"]
_zack has quit ["Leaving."]
sramsay has joined #ocaml
Amorphous has quit [Read error: 110 (Connection timed out)]
Amorphous has joined #ocaml
<thieusoai>
hi how do I define a function a that calls function b , but function b also calls a ?
_andre has quit ["*puff*"]
<thelema>
let rec a = b + 1 and b = a * 2
<thelema>
err...
<thelema>
let rec a x = b x + 1 and b x = if x > 100 then x else a x * 2
<thieusoai>
thanks let me try
<thieusoai>
that works , but is there other way I can do it without the "and" keyword ?
<mrvn>
no
<mrvn>
or rather: not nicely.
<mrvn>
let a b x = b (x + 1)
<mrvn>
let rec b x = if x > 100 then x else a b (x*2);;
<thieusoai>
ic - thanks
ccasin has joined #ocaml
ccasin has quit [Client Quit]
<mrvn>
thieusoai: I would not use and only when you are delaing with cross module recursion. The above is the way to remove a cyclic recursion between modules.
Yoric[DT] has joined #ocaml
ttamttam has joined #ocaml
bzzbzz has joined #ocaml
rwmjones_lptp has joined #ocaml
jlouis has joined #ocaml
<munga_>
anybody can help me with the ExtLib.OptParse module ? what is the recommended way to store command line argument that are not options ? With the Arg module I can just pass a function to Arg.parse . Is there a similar way to do the same with OptParse ?
<thelema>
munga_: sorry - I wrote my own command-line argument parsing library which suits my needs
<munga_>
that is, I would write Arg.parse options (fun f -> files := f :: !files ) usage to store all arguments that are not options in the list ref files
<thelema>
It looks like [parse] returns a string list - maybe this contains all unused arguments
<munga_>
maybe ... I was just testing if this is the case
<munga_>
good intuition :) thanks
schme has quit [farmer.freenode.net irc.freenode.net]
jlouis_ has quit [farmer.freenode.net irc.freenode.net]
<mrvn>
thelema: anything else would be stupid
schme has joined #ocaml
ikaros has joined #ocaml
Alpounet has quit ["``Do what you think you can't do.'' -- E. Roosevelt"]
Alpounet has joined #ocaml
lutter has joined #ocaml
Alpounet has quit ["``Do what you think you can't do.'' -- E. Roosevelt"]
Alpounet has joined #ocaml
ttamttam1 has joined #ocaml
jimmyb2187 has left #ocaml []
jimmyb2187 has joined #ocaml
ttamttam has quit [Read error: 110 (Connection timed out)]
thieusoai has quit [Read error: 60 (Operation timed out)]
valross has joined #ocaml
albacker has quit ["."]
robocop1 has quit [Remote closed the connection]
slash_ has joined #ocaml
Pimm has quit [Read error: 110 (Connection timed out)]
ttamttam1 has quit ["Leaving."]
rwmjones_lptp has left #ocaml []
Yoric has joined #ocaml
tarbo2 has quit [Read error: 145 (Connection timed out)]
middayc has joined #ocaml
Yoric has quit []
Yoric[DT] has quit ["Ex-Chat"]
sramsay has quit ["Leaving"]
thieusoai has joined #ocaml
ikaros has quit ["Leave the magic to Houdini"]
tmaeda is now known as tmaedaZ
munga_ has quit [Read error: 113 (No route to host)]
noisetonepause has joined #ocaml
_unK has quit [Read error: 104 (Connection reset by peer)]
valross has quit [Remote closed the connection]
Associat0r has quit []
joewilliams has joined #ocaml
ulfdoz_ has joined #ocaml
mfp has quit [Read error: 104 (Connection reset by peer)]
ulfdoz has quit [Read error: 110 (Connection timed out)]
ulfdoz_ is now known as ulfdoz
mfp has joined #ocaml
jeddhaberstro has joined #ocaml
valross has joined #ocaml
jeddhaberstro has quit [Remote closed the connection]
ski_ has joined #ocaml
tmaedaZ is now known as tmaeda
schme has quit [farmer.freenode.net irc.freenode.net]
r0bby has quit [farmer.freenode.net irc.freenode.net]
mehdid has quit [farmer.freenode.net irc.freenode.net]
schme has joined #ocaml
mehdid has joined #ocaml
schme has quit [Success]
schme has joined #ocaml
r0bby has joined #ocaml
jknick has quit ["leaving"]
tarbo2 has joined #ocaml
HaskellLove has joined #ocaml
<HaskellLove>
I am reading book on Ocaml. Someone interested to give me some comments how Ocaml influenced Scala and any other related Scala/Ocaml/Functional programming topics?
<thelema>
No idea how ocaml influenced Scala.
<thelema>
What book are you reading?
<HaskellLove>
I read that from the wiki. I read now The Funtional Approach to programming - Cambridge