00:06
silver has quit [Quit: rakede]
00:37
eskatrem has joined #ocaml
00:53
andrewlitteken has joined #ocaml
01:16
Jeanne-Kamikaze has quit [Remote host closed the connection]
01:40
demonimin_ has joined #ocaml
01:40
demonimin has quit [Ping timeout: 268 seconds]
01:41
ygrek__ has joined #ocaml
01:48
demonimin_ has quit [Ping timeout: 246 seconds]
01:50
eskatrem has quit [Read error: Connection reset by peer]
02:05
demonimin has joined #ocaml
02:32
tormen_ has joined #ocaml
02:36
tormen has quit [Ping timeout: 250 seconds]
02:42
Jesin has quit [Quit: Leaving]
02:45
Jesin has joined #ocaml
02:49
bartholin has quit [Ping timeout: 245 seconds]
02:56
amfabasti has quit []
02:56
keep_learning has joined #ocaml
03:01
bartholin has joined #ocaml
03:19
zmt01 has joined #ocaml
03:23
zmt00 has quit [Ping timeout: 250 seconds]
03:34
ygrek__ has quit [Ping timeout: 264 seconds]
03:38
zestymug has joined #ocaml
03:48
gravicappa has joined #ocaml
04:10
AnAverageHuman has quit [Ping timeout: 256 seconds]
04:28
notnotdan[m] has quit [Remote host closed the connection]
05:39
zestymug has quit [Ping timeout: 268 seconds]
05:42
zestymug has joined #ocaml
06:14
sodastabbed has joined #ocaml
06:14
sodastabbed has quit [Excess Flood]
06:15
sodastabbed has joined #ocaml
06:15
sodastab has quit [Remote host closed the connection]
06:22
sodastabbed has quit [Ping timeout: 264 seconds]
06:23
sodastab has joined #ocaml
06:26
zestymug has quit [Ping timeout: 264 seconds]
06:50
SomeDamnBody has quit [Ping timeout: 245 seconds]
06:56
dinosaure has quit [Ping timeout: 252 seconds]
06:56
dinosaure has joined #ocaml
07:02
mildtaste has joined #ocaml
07:03
barockobamo has joined #ocaml
07:07
dinosaure has quit [Ping timeout: 252 seconds]
07:16
dinosaure has joined #ocaml
07:23
freyr69 has joined #ocaml
07:27
themsay has quit [Ping timeout: 268 seconds]
07:32
rixed_ has left #ocaml [#ocaml]
07:33
rixed has joined #ocaml
07:37
dinosaure has quit [Quit: WeeChat 1.6]
07:37
dinosaure has joined #ocaml
07:38
mfp has joined #ocaml
07:40
andrewlitteken has quit [Quit: Connection closed for inactivity]
07:41
Riviera_ has quit [Read error: Connection reset by peer]
07:56
dinosaure has quit [Ping timeout: 252 seconds]
07:58
themsay has joined #ocaml
08:05
dinosaure has joined #ocaml
08:10
dinosaure has quit [Ping timeout: 250 seconds]
08:13
dinosaure has joined #ocaml
08:18
dinosaure has quit [Ping timeout: 250 seconds]
08:18
dinosaure has joined #ocaml
08:19
fmnt has joined #ocaml
08:22
dinosaure has quit [Ping timeout: 245 seconds]
08:30
dinosaure has joined #ocaml
08:33
dinosaure has quit [Client Quit]
08:33
dinosaure has joined #ocaml
08:45
carlosdagos has quit [Quit: WeeChat 2.2]
08:57
dimitarvp has joined #ocaml
09:11
dimitarvp has quit [Read error: Connection reset by peer]
09:24
_whitelogger has joined #ocaml
09:28
themsay has quit [Ping timeout: 252 seconds]
09:28
themsay has joined #ocaml
09:51
zolk3ri has joined #ocaml
10:11
kakadu has joined #ocaml
10:26
sagax has quit [Ping timeout: 245 seconds]
10:58
mildtaste has quit [Ping timeout: 264 seconds]
11:00
demonimin has quit [Ping timeout: 268 seconds]
11:20
silver has joined #ocaml
11:23
niklasl2 has joined #ocaml
11:29
Guest18661 has joined #ocaml
11:31
Guest18661 has quit [Remote host closed the connection]
11:32
Haudegen has joined #ocaml
12:13
ggole has joined #ocaml
12:27
carlosdagos has joined #ocaml
12:34
carlosdagos has quit [Quit: WeeChat 2.2]
12:34
carlosdagos has joined #ocaml
12:52
wilfredh has joined #ocaml
12:55
breitenj has joined #ocaml
12:58
spew has joined #ocaml
12:59
<
wilfredh >
how do I insert a value into a String.Map and return it?
12:59
<
wilfredh >
this is complaining that `add` returns an Ok or Duplicate thing
13:00
AtumT has joined #ocaml
13:03
<
wilfredh >
aha, there's a `.set` function too
13:12
<
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.
13:13
ygrek__ has joined #ocaml
13:15
<
ggole >
That's cheaper in the event of a duplicate key, I take it
13:15
<
carlosdagos >
It uses a polymorphic variant, so the backtick is important
13:15
<
carlosdagos >
I guess it depends on whether you
_care_ that there's a duplicate key?
13:16
<
carlosdagos >
not a bad piece of info :)
13:16
<
wilfredh >
thanks. In this case I don't care if there's a duplicate key, and my map isn't terribly big
13:16
<
wilfredh >
so `set` is what I want in this case, but `add` definitely seems useful
13:29
ihavelotsoffries has joined #ocaml
13:31
<
ihavelotsoffries >
Hello
13:32
<
ihavelotsoffries >
this may be a lil silly but why can't I write this:
13:32
<
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))
13:32
<
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
13:32
<
ihavelotsoffries >
grrrr. sorry about the noise, copypaste fail. but you should get the idea ;)
13:41
<
ggole >
Self application needs #rectypes.
13:42
<
ggole >
That doesn't seem to be the only problem, but start there.
13:51
<
ihavelotsoffries >
Thanks guys, reading through
13:52
AnAverageHuman has joined #ocaml
13:59
sagax has joined #ocaml
14:03
fmnt has quit [Quit: Leaving.]
14:10
mildtaste has joined #ocaml
14:21
demonimin has joined #ocaml
14:32
demonimin has quit [Ping timeout: 252 seconds]
14:33
tarptaeya has joined #ocaml
14:33
demonimin has joined #ocaml
14:39
demonimin has quit [Ping timeout: 245 seconds]
14:57
kakadu has quit [Quit: Konversation terminated!]
14:57
SomeDamnBody has joined #ocaml
15:02
AnAverageHuman has quit [Ping timeout: 245 seconds]
15:05
ihavelotsoffries has quit [Ping timeout: 250 seconds]
15:18
AnAverageHuman has joined #ocaml
15:26
zestymug has joined #ocaml
15:26
zestymug has joined #ocaml
15:26
zestymug has quit [Changing host]
15:29
Birdface has joined #ocaml
15:41
crowley95 has quit [Ping timeout: 252 seconds]
15:42
Birdface has quit [Quit: Leaving]
15:48
zestymug has quit [Quit: Konversation terminated!]
15:48
zestymug has joined #ocaml
15:48
zestymug has quit [Changing host]
15:48
zestymug has joined #ocaml
15:51
crowley95 has joined #ocaml
16:19
Haudegen has quit [Remote host closed the connection]
16:35
freyr69 has quit [Remote host closed the connection]
16:40
AnAverageHuman has quit [Ping timeout: 268 seconds]
16:42
barockobamo has quit [Remote host closed the connection]
17:05
SomeDamnBody has quit [Ping timeout: 245 seconds]
17:08
al-damiri has joined #ocaml
17:09
tristero has joined #ocaml
17:17
Serpent7776 has joined #ocaml
17:21
AnAverageHuman has joined #ocaml
17:26
Haudegen has joined #ocaml
17:38
FreeBirdLjj has joined #ocaml
17:42
FreeBirdLjj has quit [Ping timeout: 240 seconds]
17:44
themsay has quit [Ping timeout: 246 seconds]
17:50
KeyJoo has joined #ocaml
17:56
KeyJoo has quit [Quit: KeyJoo]
17:57
caente has joined #ocaml
18:00
kakadu has joined #ocaml
18:00
gravicappa has quit [Ping timeout: 250 seconds]
18:01
tobiasBora has quit [Ping timeout: 250 seconds]
18:02
tobiasBora has joined #ocaml
18:02
Haudegen has quit [Remote host closed the connection]
18:10
tane has joined #ocaml
18:20
wilfredh has quit [Ping timeout: 252 seconds]
18:20
andreypopp has quit [Ping timeout: 252 seconds]
18:20
lopex has quit [Read error: Connection reset by peer]
18:20
cemerick has quit [Read error: Connection reset by peer]
18:20
rfv has quit [Write error: Connection reset by peer]
18:20
andreypopp has joined #ocaml
18:21
cemerick has joined #ocaml
18:21
wilfredh has joined #ocaml
18:21
lopex has joined #ocaml
18:21
rfv has joined #ocaml
18:28
AnAverageHuman has quit [Ping timeout: 245 seconds]
18:28
gravicappa has joined #ocaml
18:30
jnavila has joined #ocaml
18:47
zestymug has quit [Quit: Konversation terminated!]
18:48
okuu has joined #ocaml
19:02
gravicappa has quit [Ping timeout: 246 seconds]
19:12
nikivi has quit [Ping timeout: 240 seconds]
19:13
SomeDamnBody has joined #ocaml
19:15
nikivi has joined #ocaml
19:20
SomeDamnBody has quit [Ping timeout: 245 seconds]
19:32
Serpent7776 has quit [Quit: leaving]
19:32
okuu has quit [Ping timeout: 250 seconds]
19:38
SomeDamnBody has joined #ocaml
19:46
pierpal has joined #ocaml
19:52
FliiFe has joined #ocaml
20:19
jnavila has quit [Ping timeout: 252 seconds]
20:23
SomeDamnBody has quit [Ping timeout: 255 seconds]
20:33
crowley95 has quit [Ping timeout: 246 seconds]
20:34
tane has quit [Quit: Leaving]
20:36
crowley95 has joined #ocaml
20:42
jnavila has joined #ocaml
20:50
jnavila has quit [Ping timeout: 246 seconds]
20:51
jnavila has joined #ocaml
20:55
okuu has joined #ocaml
20:58
jnavila has quit [Ping timeout: 252 seconds]
20:59
ggole has quit [Quit: Leaving]
21:03
spew has quit [Quit: going home]
21:09
SomeDamnBody has joined #ocaml
21:14
Haudegen has joined #ocaml
21:14
SomeDamnBody has quit [Ping timeout: 250 seconds]
21:18
nicoo has quit [Remote host closed the connection]
21:18
nicoo has joined #ocaml
21:22
pyon has joined #ocaml
21:25
caente has quit [Read error: Connection reset by peer]
21:26
unyu has quit [Ping timeout: 258 seconds]
21:49
pierpal has quit [Ping timeout: 252 seconds]
21:51
themsay has joined #ocaml
22:04
zolk3ri has quit [Remote host closed the connection]
22:27
mfp has quit [Ping timeout: 250 seconds]
22:28
Haudegen has quit [Remote host closed the connection]
22:43
carlosdagos has quit [Quit: WeeChat 2.2]
23:00
AnAverageHuman has joined #ocaml
23:03
themsay has quit [Remote host closed the connection]
23:04
themsay has joined #ocaml
23:18
okuu has quit [Ping timeout: 250 seconds]
23:35
wagle_ is now known as wagle
23:45
mfp has joined #ocaml
23:57
al-damiri has quit [Quit: Connection closed for inactivity]