00:01
kakadu_ has quit [Ping timeout: 260 seconds]
00:03
mahmudov has quit [Remote host closed the connection]
00:28
sagax has quit [Remote host closed the connection]
00:34
serge_ has joined #ocaml
00:39
serge_ has quit [Ping timeout: 260 seconds]
00:42
zgasma has quit [Quit: leaving]
00:53
kleisli_ has quit [Ping timeout: 260 seconds]
01:08
jave has quit [Ping timeout: 265 seconds]
01:39
olle has quit [Ping timeout: 240 seconds]
01:41
olle has joined #ocaml
02:15
sagax has joined #ocaml
02:23
mfp has quit [Ping timeout: 268 seconds]
02:23
serge_ has joined #ocaml
02:28
serge_ has quit [Ping timeout: 268 seconds]
02:34
zmt00 has joined #ocaml
02:37
zmt01 has quit [Ping timeout: 248 seconds]
03:15
andreas303 has quit [Ping timeout: 240 seconds]
03:15
cartwright has quit [Ping timeout: 240 seconds]
03:15
RalfJ has quit [Quit: No Ping reply in 180 seconds.]
03:17
RalfJ has joined #ocaml
03:24
kvik has quit [Ping timeout: 260 seconds]
03:25
kvik has joined #ocaml
03:28
kleisli_ has joined #ocaml
03:34
ehirdoy has quit [Ping timeout: 265 seconds]
03:41
tormen has joined #ocaml
03:45
tormen_ has quit [Ping timeout: 272 seconds]
03:46
ehirdoy has joined #ocaml
04:06
andreas303 has joined #ocaml
04:11
kleisli_ has quit [Ping timeout: 260 seconds]
04:11
serge has joined #ocaml
04:16
serge has quit [Ping timeout: 272 seconds]
05:01
dborisog has joined #ocaml
05:16
gravicappa has joined #ocaml
05:18
vesper has quit [Ping timeout: 240 seconds]
05:23
vesper11 has joined #ocaml
05:29
vicfred has quit [Quit: Leaving]
05:30
nopf has quit [Ping timeout: 260 seconds]
05:31
nopf has joined #ocaml
05:36
NSA_Spy has quit [Ping timeout: 240 seconds]
05:42
narimiran has joined #ocaml
05:57
oni-on-ion has quit [Remote host closed the connection]
05:57
oni-on-ion has joined #ocaml
05:59
serge has joined #ocaml
06:03
serge has quit [Ping timeout: 240 seconds]
06:23
malina has quit [Ping timeout: 265 seconds]
06:28
<
nicolaus >
i just want to ask how can i get the max key value and it's pair
06:37
<
vsiles >
not sure about this particular implementation, but they do provide a max_binding / max_binding_opt operation that could be just what you want
06:50
mbuf has joined #ocaml
06:56
<
nicolaus >
yes, I tried that also, but I don't understand the usage
06:57
<
nicolaus >
i want to be able to get the key
07:02
<
nicolaus >
it returns a MyUsers.key * string but I want a string return which is the key
07:47
serge has joined #ocaml
07:52
serge has quit [Ping timeout: 265 seconds]
07:56
ggole has joined #ocaml
07:57
Haudegen has joined #ocaml
08:00
<
vsiles >
nicolaus: can you show me how you created your map ? It should return a key/value pair. Probably MyUsers.key is just an alias to string
08:13
arbipher has quit [Remote host closed the connection]
08:19
mfp has joined #ocaml
08:39
Wojciech_K has joined #ocaml
08:41
jave has joined #ocaml
08:48
andreas303 has quit [Ping timeout: 240 seconds]
08:53
andreas303 has joined #ocaml
09:18
<
nicolaus >
module Float = struct
09:18
<
nicolaus >
type t = float
09:18
<
nicolaus >
let compare = Pervasives.compare
09:18
<
nicolaus >
module MyUsers = Map.Make(Float);;
09:19
<
nicolaus >
I want to be able to do this: print_float (MyUsers.max_binding m);;
09:19
<
nicolaus >
or get the float key
09:20
<
vsiles >
max_binding returns a pair
09:20
<
vsiles >
you have to extract your key from this pair
09:20
<
vsiles >
you can use the `fst` function which does just that
09:20
<
vsiles >
or use a destructive let like `let (x, _) = Myusers.max_binding m in ...`
09:21
<
vsiles >
so for your example, you can do `print_float (fst (MyUsers.max_binding m))`
09:23
<
nicolaus >
damn, spent most of my hours today dealing with that. thank vsiles
09:25
<
vsiles >
you're welcome :D
09:25
<
vsiles >
I know using merlin helped me a lot
09:25
<
vsiles >
you can query for the type of expressions
09:25
<
vsiles >
and if you query multiple times, it can unfold aliases, so you know what's what
09:26
<
nicolaus >
yeah, like depending on the comiler is difficult because the errors are sometimes vague
09:33
<
vsiles >
the compiler is fine by me, but having to recompile just to get a type error is time wasting
09:33
<
vsiles >
merlin rocks
09:35
serge has joined #ocaml
09:40
serge has quit [Ping timeout: 265 seconds]
09:41
<
nicolaus >
thanks again vsiles
09:48
nullcone has quit [Quit: Connection closed for inactivity]
10:03
kvik has quit [Changing host]
10:03
kvik has joined #ocaml
10:13
dmiles has quit [Ping timeout: 240 seconds]
10:15
FreeBirdLjj has joined #ocaml
10:15
zmt01 has joined #ocaml
10:16
zmt00 has quit [Ping timeout: 260 seconds]
10:19
FreeBirdLjj has quit [Ping timeout: 240 seconds]
10:20
dmiles has joined #ocaml
10:20
ocaml459 has joined #ocaml
10:26
webshinra has joined #ocaml
10:26
bartholin has quit [Quit: Leaving]
10:39
ocaml459 has joined #ocaml
11:01
kleisli_ has joined #ocaml
11:16
pierpal has joined #ocaml
11:24
serge has joined #ocaml
11:28
serge has quit [Ping timeout: 260 seconds]
11:35
infinity0 has joined #ocaml
11:50
freyr69 has joined #ocaml
11:51
<
freyr69 >
I'm trying Ocamlformat, and while it's nice, it indents differently from what Tuareg does out of the box
11:52
<
freyr69 >
Do people usually tune Tuareg or you just apply ocamlformat on save?
11:53
<
freyr69 >
Does anybody have Tuareg indentation configs similar to what Ocamlformat does with ``conventional'' or ``ocamlformat'' profiles?
11:57
Haudegen has quit [Quit: Bin weg.]
12:44
pierpal has quit [Quit: Poof]
12:44
pierpal has joined #ocaml
12:46
kleisli_ has quit [Ping timeout: 260 seconds]
12:55
pierpal has quit [Ping timeout: 246 seconds]
13:00
Haudegen has joined #ocaml
13:10
kleisli_ has joined #ocaml
13:11
<
smondet >
freyr69: I think there is an option to ocamlformat to behave similaryly to ocp-indent but tuareg not that I know of. (I think I've had tuareg indentation disabled for more than 8 years now :) )
13:12
serge has joined #ocaml
13:16
serge has quit [Ping timeout: 268 seconds]
13:25
pierpal has joined #ocaml
13:32
pierpal has quit [Ping timeout: 240 seconds]
13:42
freyr69 has quit [Read error: Connection reset by peer]
14:37
pierpal has joined #ocaml
14:38
pierpal has quit [Client Quit]
14:39
pierpal has joined #ocaml
14:45
ocaml459 has joined #ocaml
14:46
ocaml459 has quit [Client Quit]
14:58
kleisli_ has quit [Quit: Leaving]
14:59
Wojciech_K has quit [Remote host closed the connection]
14:59
kleisli has joined #ocaml
15:00
serge has joined #ocaml
15:01
kleisli has quit [Client Quit]
15:01
kleisli has joined #ocaml
15:02
malina has joined #ocaml
15:04
serge has quit [Ping timeout: 260 seconds]
15:25
spew has joined #ocaml
15:26
pierpal has quit [Read error: Connection reset by peer]
15:26
pierpal has joined #ocaml
15:34
pierpal has quit [Quit: Poof]
15:35
pierpal has joined #ocaml
16:01
serge has joined #ocaml
16:05
arbipher has joined #ocaml
16:06
serge has quit [Ping timeout: 265 seconds]
16:12
ygrek__ has joined #ocaml
16:16
pierpal has quit [Ping timeout: 268 seconds]
16:31
h11 has joined #ocaml
16:39
pierpal has joined #ocaml
16:48
Haudegen has quit [Quit: Bin weg.]
16:54
olle has quit [Ping timeout: 260 seconds]
16:55
olle has joined #ocaml
16:58
mbuf has quit [Quit: Leaving]
17:05
vicfred has joined #ocaml
17:18
pierpal has quit [Ping timeout: 268 seconds]
17:47
vicfred has quit [Remote host closed the connection]
17:47
vicfred has joined #ocaml
17:49
serge has joined #ocaml
17:54
serge has quit [Ping timeout: 272 seconds]
17:58
ggole has quit [Quit: Leaving]
18:46
ocaml459 has joined #ocaml
18:47
ocaml459 has quit [Client Quit]
18:47
bartholin has joined #ocaml
18:51
mahmudov has joined #ocaml
19:16
ocaml459 has joined #ocaml
19:34
dborisog has quit [Ping timeout: 240 seconds]
19:37
serge has joined #ocaml
19:40
jnavila has joined #ocaml
19:42
serge has quit [Ping timeout: 265 seconds]
19:49
Nahra has joined #ocaml
19:53
sillyotter has joined #ocaml
19:57
sillyotter has quit [Client Quit]
20:01
pierpal has joined #ocaml
20:07
Nahra has quit [Quit: leaving]
20:11
Nahra has joined #ocaml
20:16
Tsukimaru has joined #ocaml
20:18
Nahra has quit [Quit: leaving]
20:18
Haudegen has joined #ocaml
20:19
Tsukimaru has quit [Client Quit]
20:22
arbipher has quit [Remote host closed the connection]
20:22
Nahra has joined #ocaml
20:25
pierpal has quit [Read error: Connection reset by peer]
20:36
_whitelogger has joined #ocaml
20:37
Hrundi_V_Bakshi has joined #ocaml
20:37
Serpent7776 has quit [Read error: Connection reset by peer]
20:38
gravicappa has quit [Ping timeout: 260 seconds]
20:41
kakadu_ has joined #ocaml
20:49
nullcone has joined #ocaml
20:49
olle has quit [Ping timeout: 240 seconds]
20:51
olle has joined #ocaml
20:52
malina has quit [Ping timeout: 240 seconds]
20:54
Serpent7776 has joined #ocaml
20:54
Nahra has quit [Quit: leaving]
20:56
olle has quit [Ping timeout: 260 seconds]
20:57
olle has joined #ocaml
21:01
pierpal has joined #ocaml
21:03
narimiran has quit [Ping timeout: 240 seconds]
21:11
ocaml459 has joined #ocaml
21:11
malina has joined #ocaml
21:25
serge has joined #ocaml
21:30
serge has quit [Ping timeout: 272 seconds]
21:45
pierpal has quit [Ping timeout: 260 seconds]
21:50
kleisli has quit [Ping timeout: 240 seconds]
21:51
pierpal has joined #ocaml
21:57
kakadu_ has quit [Ping timeout: 240 seconds]
21:57
kakadu_ has joined #ocaml
21:59
pierpal has quit [Read error: Connection reset by peer]
22:09
jnavila has quit [Ping timeout: 272 seconds]
22:12
kakadu__ has joined #ocaml
22:12
kakadu_ has quit [Ping timeout: 265 seconds]
22:30
Serpent7776 has quit [Quit: leaving]
22:32
pierpal has joined #ocaml
22:51
ygrek__ has quit [Ping timeout: 268 seconds]
22:54
kakadu__ has quit [Remote host closed the connection]
23:03
NSA_Spy has joined #ocaml
23:14
serge_ has joined #ocaml
23:18
serge_ has quit [Ping timeout: 260 seconds]
23:21
ocaml459 has joined #ocaml
23:23
ocaml459 has quit [Client Quit]
23:42
Hrundi_V_Bakshi has quit [Ping timeout: 260 seconds]
23:55
mahmudov has quit [Remote host closed the connection]
23:57
Haudegen has quit [Ping timeout: 268 seconds]