adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.07.1 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.07/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml | Due to ongoing spam, you must register your nickname to talk on the channel
silver has quit [Quit: rakede]
eskatrem has joined #ocaml
andrewlitteken has joined #ocaml
Jeanne-Kamikaze has quit [Remote host closed the connection]
demonimin_ has joined #ocaml
demonimin has quit [Ping timeout: 268 seconds]
ygrek__ has joined #ocaml
demonimin_ has quit [Ping timeout: 246 seconds]
eskatrem has quit [Read error: Connection reset by peer]
demonimin has joined #ocaml
tormen_ has joined #ocaml
tormen has quit [Ping timeout: 250 seconds]
Jesin has quit [Quit: Leaving]
Jesin has joined #ocaml
bartholin has quit [Ping timeout: 245 seconds]
amfabasti has quit []
keep_learning has joined #ocaml
bartholin has joined #ocaml
zmt01 has joined #ocaml
zmt00 has quit [Ping timeout: 250 seconds]
ygrek__ has quit [Ping timeout: 264 seconds]
zestymug has joined #ocaml
gravicappa has joined #ocaml
AnAverageHuman has quit [Ping timeout: 256 seconds]
notnotdan[m] has quit [Remote host closed the connection]
zestymug has quit [Ping timeout: 268 seconds]
zestymug has joined #ocaml
sodastabbed has joined #ocaml
sodastabbed has quit [Excess Flood]
sodastabbed has joined #ocaml
sodastab has quit [Remote host closed the connection]
sodastabbed has quit [Ping timeout: 264 seconds]
sodastab has joined #ocaml
zestymug has quit [Ping timeout: 264 seconds]
SomeDamnBody has quit [Ping timeout: 245 seconds]
dinosaure has quit [Ping timeout: 252 seconds]
dinosaure has joined #ocaml
mildtaste has joined #ocaml
barockobamo has joined #ocaml
dinosaure has quit [Ping timeout: 252 seconds]
dinosaure has joined #ocaml
freyr69 has joined #ocaml
themsay has quit [Ping timeout: 268 seconds]
rixed_ has left #ocaml [#ocaml]
rixed has joined #ocaml
dinosaure has quit [Quit: WeeChat 1.6]
dinosaure has joined #ocaml
mfp has joined #ocaml
andrewlitteken has quit [Quit: Connection closed for inactivity]
Riviera_ has quit [Read error: Connection reset by peer]
dinosaure has quit [Ping timeout: 252 seconds]
themsay has joined #ocaml
dinosaure has joined #ocaml
dinosaure has quit [Ping timeout: 250 seconds]
dinosaure has joined #ocaml
dinosaure has quit [Ping timeout: 250 seconds]
dinosaure has joined #ocaml
fmnt has joined #ocaml
dinosaure has quit [Ping timeout: 245 seconds]
dinosaure has joined #ocaml
dinosaure has quit [Client Quit]
dinosaure has joined #ocaml
carlosdagos has quit [Quit: WeeChat 2.2]
dimitarvp has joined #ocaml
dimitarvp has quit [Read error: Connection reset by peer]
_whitelogger has joined #ocaml
themsay has quit [Ping timeout: 252 seconds]
themsay has joined #ocaml
zolk3ri has joined #ocaml
kakadu has joined #ocaml
sagax has quit [Ping timeout: 245 seconds]
mildtaste has quit [Ping timeout: 264 seconds]
demonimin has quit [Ping timeout: 268 seconds]
silver has joined #ocaml
niklasl2 has joined #ocaml
Guest18661 has joined #ocaml
Guest18661 has quit [Remote host closed the connection]
Haudegen has joined #ocaml
ggole has joined #ocaml
carlosdagos has joined #ocaml
carlosdagos has quit [Quit: WeeChat 2.2]
carlosdagos has joined #ocaml
wilfredh has joined #ocaml
breitenj- has quit [Quit: ZNC - 1.6.0 - http://znc.in]
breitenj has joined #ocaml
spew has joined #ocaml
<wilfredh> how do I insert a value into a String.Map and return it?
<wilfredh> this is complaining that `add` returns an Ok or Duplicate thing
AtumT has joined #ocaml
<wilfredh> aha, there's a `.set` function too
<carlosdagos> wilfredh: if you use `add` you can pattern match on the result. `Ok m` will contain your updated map, and `Duplicate` simply indicates that the key already existed.
ygrek__ has joined #ocaml
<ggole> That's cheaper in the event of a duplicate key, I take it
<carlosdagos> It uses a polymorphic variant, so the backtick is important
<carlosdagos> I guess it depends on whether you _care_ that there's a duplicate key?
<carlosdagos> not a bad piece of info :)
<wilfredh> thanks. In this case I don't care if there's a duplicate key, and my map isn't terribly big
<wilfredh> so `set` is what I want in this case, but `add` definitely seems useful
ihavelotsoffries has joined #ocaml
<ihavelotsoffries> Hello
<ihavelotsoffries> this may be a lil silly but why can't I write this:
<ihavelotsoffries> let yc y = let yy = y y in y yylet fib = yc (fun n f -> match n with | 0 -> 1 | n -> f (n-1) + f (n-2))
<ihavelotsoffries> let yc y = let yy = y y in y yy inlet fib = yc (fun n f -> match n with | 0 -> 1 | n -> f (n-1) + f (n-2)) in
<ihavelotsoffries> grrrr. sorry about the noise, copypaste fail. but you should get the idea ;)
<Fardale> ihavelotsoffries: I think this come from the value restriction, (5.1.2 http://caml.inria.fr/pub/docs/manual-ocaml/polymorphism.html)
<ggole> Self application needs #rectypes.
<ggole> That doesn't seem to be the only problem, but start there.
<ihavelotsoffries> Thanks guys, reading through
AnAverageHuman has joined #ocaml
sagax has joined #ocaml
fmnt has quit [Quit: Leaving.]
mildtaste has joined #ocaml
demonimin has joined #ocaml
demonimin has quit [Ping timeout: 252 seconds]
tarptaeya has joined #ocaml
demonimin has joined #ocaml
demonimin has quit [Ping timeout: 245 seconds]
kakadu has quit [Quit: Konversation terminated!]
SomeDamnBody has joined #ocaml
AnAverageHuman has quit [Ping timeout: 245 seconds]
ihavelotsoffries has quit [Ping timeout: 250 seconds]
AnAverageHuman has joined #ocaml
zestymug has joined #ocaml
zestymug has joined #ocaml
zestymug has quit [Changing host]
Birdface has joined #ocaml
crowley95 has quit [Ping timeout: 252 seconds]
Birdface has quit [Quit: Leaving]
zestymug has quit [Quit: Konversation terminated!]
zestymug has joined #ocaml
zestymug has quit [Changing host]
zestymug has joined #ocaml
crowley95 has joined #ocaml
Haudegen has quit [Remote host closed the connection]
freyr69 has quit [Remote host closed the connection]
AnAverageHuman has quit [Ping timeout: 268 seconds]
barockobamo has quit [Remote host closed the connection]
SomeDamnBody has quit [Ping timeout: 245 seconds]
al-damiri has joined #ocaml
tristero has joined #ocaml
Serpent7776 has joined #ocaml
AnAverageHuman has joined #ocaml
Haudegen has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 240 seconds]
themsay has quit [Ping timeout: 246 seconds]
KeyJoo has joined #ocaml
KeyJoo has quit [Quit: KeyJoo]
caente has joined #ocaml
kakadu has joined #ocaml
gravicappa has quit [Ping timeout: 250 seconds]
tobiasBora has quit [Ping timeout: 250 seconds]
tobiasBora has joined #ocaml
Haudegen has quit [Remote host closed the connection]
tane has joined #ocaml
wilfredh has quit [Ping timeout: 252 seconds]
andreypopp has quit [Ping timeout: 252 seconds]
lopex has quit [Read error: Connection reset by peer]
cemerick has quit [Read error: Connection reset by peer]
rfv has quit [Write error: Connection reset by peer]
andreypopp has joined #ocaml
cemerick has joined #ocaml
wilfredh has joined #ocaml
lopex has joined #ocaml
rfv has joined #ocaml
AnAverageHuman has quit [Ping timeout: 245 seconds]
gravicappa has joined #ocaml
jnavila has joined #ocaml
zestymug has quit [Quit: Konversation terminated!]
okuu has joined #ocaml
gravicappa has quit [Ping timeout: 246 seconds]
nikivi has quit [Ping timeout: 240 seconds]
SomeDamnBody has joined #ocaml
nikivi has joined #ocaml
SomeDamnBody has quit [Ping timeout: 245 seconds]
Serpent7776 has quit [Quit: leaving]
okuu has quit [Ping timeout: 250 seconds]
SomeDamnBody has joined #ocaml
pierpal has joined #ocaml
FliiFe has joined #ocaml
jnavila has quit [Ping timeout: 252 seconds]
SomeDamnBody has quit [Ping timeout: 255 seconds]
crowley95 has quit [Ping timeout: 246 seconds]
tane has quit [Quit: Leaving]
crowley95 has joined #ocaml
jnavila has joined #ocaml
jnavila has quit [Ping timeout: 246 seconds]
jnavila has joined #ocaml
okuu has joined #ocaml
jnavila has quit [Ping timeout: 252 seconds]
ggole has quit [Quit: Leaving]
spew has quit [Quit: going home]
SomeDamnBody has joined #ocaml
Haudegen has joined #ocaml
SomeDamnBody has quit [Ping timeout: 250 seconds]
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
pyon has joined #ocaml
caente has quit [Read error: Connection reset by peer]
unyu has quit [Ping timeout: 258 seconds]
pierpal has quit [Ping timeout: 252 seconds]
themsay has joined #ocaml
zolk3ri has quit [Remote host closed the connection]
mfp has quit [Ping timeout: 250 seconds]
Haudegen has quit [Remote host closed the connection]
carlosdagos has quit [Quit: WeeChat 2.2]
AnAverageHuman has joined #ocaml
themsay has quit [Remote host closed the connection]
themsay has joined #ocaml
okuu has quit [Ping timeout: 250 seconds]
wagle_ is now known as wagle
mfp has joined #ocaml
al-damiri has quit [Quit: Connection closed for inactivity]