00:25
rwmjones has joined #ocaml
00:29
ollehar has quit [Ping timeout: 240 seconds]
00:29
mnxn has joined #ocaml
00:30
mnxn has quit [Client Quit]
00:30
mnxn has joined #ocaml
00:31
ollehar has joined #ocaml
00:58
malc_ has quit [Ping timeout: 240 seconds]
01:09
Haudegen has quit [Ping timeout: 240 seconds]
01:15
malc_ has joined #ocaml
01:35
nicoo has quit [Ping timeout: 240 seconds]
01:39
mnxn has quit [Quit: mnxn]
01:49
nicoo has joined #ocaml
02:35
waleee-cl has quit [Quit: Connection closed for inactivity]
03:47
gaussian has quit [Ping timeout: 264 seconds]
04:24
remexre has joined #ocaml
04:39
mbuf has joined #ocaml
04:58
dborisog has joined #ocaml
05:16
narimiran has joined #ocaml
05:16
quarters has quit [Ping timeout: 256 seconds]
05:25
mnxn has joined #ocaml
05:33
mnxn has quit [Quit: mnxn]
05:37
quarters has joined #ocaml
05:40
troydm has quit [Quit: What is Hope? That all of your wishes and all of your dreams come true? To turn back time because things were not supposed to happen like that (C) Rau Le Creuset]
05:40
troydm has joined #ocaml
05:51
mnxn has joined #ocaml
06:00
ggole has joined #ocaml
06:11
osa1 has joined #ocaml
06:24
quarters has quit [Ping timeout: 264 seconds]
06:42
<
swapnilraj[m] >
Does this help you?
06:52
brown121407 has joined #ocaml
06:54
osa1 has quit [Quit: osa1]
06:55
osa1 has joined #ocaml
07:22
mnxn has quit [Quit: mnxn]
07:27
brown121407 has quit [Remote host closed the connection]
07:34
osa1 has quit [Ping timeout: 246 seconds]
07:47
brown121407 has joined #ocaml
08:02
mnxn has joined #ocaml
08:18
mnxn1 has joined #ocaml
08:20
mnxn has quit [Ping timeout: 240 seconds]
08:22
mnxn has joined #ocaml
08:22
mnxn1 has quit [Ping timeout: 258 seconds]
08:28
snowpanda has quit [Quit: Leaving...]
08:47
jnavila has joined #ocaml
09:01
jnavila has quit [Ping timeout: 272 seconds]
09:02
jnavila has joined #ocaml
09:15
mnxn has quit [Quit: mnxn]
10:03
brown121407 has quit [Remote host closed the connection]
10:17
narimiran has quit [Ping timeout: 240 seconds]
10:17
GeoffK has joined #ocaml
10:30
Haudegen has joined #ocaml
10:38
infinity0 has quit [Remote host closed the connection]
10:40
infinity0 has joined #ocaml
10:45
nullcone has quit [Quit: Connection closed for inactivity]
11:17
GeoffK has quit [Quit: Leaving]
11:28
waleee-cl has joined #ocaml
12:05
osa1 has joined #ocaml
12:25
malc_` has joined #ocaml
12:28
hannes_ has joined #ocaml
12:28
rntz2_ has joined #ocaml
12:28
dmbaturin_ has joined #ocaml
12:30
AdmWiggin has joined #ocaml
12:32
malc_ has quit [*.net *.split]
12:32
catern has quit [*.net *.split]
12:32
hannes has quit [*.net *.split]
12:32
dmbaturin has quit [*.net *.split]
12:32
rntz2 has quit [*.net *.split]
12:32
tianon has quit [*.net *.split]
12:52
catern has joined #ocaml
12:53
Haudegen has quit [Ping timeout: 240 seconds]
12:54
Haudegen has joined #ocaml
13:21
osa1 has quit [Ping timeout: 258 seconds]
14:01
mbuf has quit [Quit: Leaving]
14:38
rockethead has joined #ocaml
14:59
inkbottle has quit [Quit: Konversation terminated!]
15:02
zebrag has joined #ocaml
15:11
malc_` has quit [Ping timeout: 240 seconds]
15:15
rockethead has quit [Quit: rockethead]
15:33
osa1 has joined #ocaml
15:41
RalfJ has quit [Remote host closed the connection]
15:41
gaussian has joined #ocaml
15:41
RalfJ has joined #ocaml
16:03
dborisog has quit [Ping timeout: 240 seconds]
16:08
Haudegen has quit [Ping timeout: 256 seconds]
16:36
Jesin has quit [Quit: Leaving]
16:41
malc_` has joined #ocaml
16:47
mnxn has joined #ocaml
16:54
tane has joined #ocaml
16:56
osa1 has quit [Quit: osa1]
16:58
Jesin has joined #ocaml
17:02
mnxn has quit [Quit: mnxn]
17:12
Haudegen has joined #ocaml
17:25
Haudegen has quit [Ping timeout: 260 seconds]
17:51
Haudegen has joined #ocaml
18:28
inkbottle has joined #ocaml
18:29
zebrag has quit [Ping timeout: 264 seconds]
18:38
Haudegen has quit [Quit: Bin weg.]
18:44
bartholin has quit [Ping timeout: 260 seconds]
18:50
osa1 has joined #ocaml
18:59
narimiran has joined #ocaml
19:12
mnxn has joined #ocaml
19:15
osa1 has quit [Ping timeout: 246 seconds]
19:21
artymort has quit [Remote host closed the connection]
19:29
nullcone has joined #ocaml
19:35
Haudegen has joined #ocaml
19:36
malc_` has quit [Ping timeout: 264 seconds]
20:01
quarters has joined #ocaml
20:01
<
quarters >
hello. I was wondering how one can implement List.concat with only List.fold_right or List.fold_left
20:05
mnxn has quit [Quit: mnxn]
20:06
ggole has quit [Quit: Leaving]
20:15
mal`` has quit [Quit: Leaving]
20:15
mal`` has joined #ocaml
20:24
<
flux >
well, you probably need more than just one fold. so one inside the other.
20:34
bartholin has joined #ocaml
20:47
hannes_ is now known as hannes
21:05
<
defolos >
Can I somehow run opam commands without running opam init first?
21:06
<
defolos >
I just want to query an opam file for its dependencies but nothing in addition, so running opam init shouldn't be required
21:10
jnavila has quit [Quit: Konversation terminated!]
21:18
mnxn has joined #ocaml
21:19
tane has quit [Quit: Leaving]
21:22
narimiran has quit [Quit: leaving]
21:26
<
p4bl0 >
flux: what? No you don't need more than one fold :)
21:26
<
p4bl0 >
quarters: List.fold_right (fun x l -> x :: l) [1;2;3] [4;5;6];;
21:27
<
flux >
oh. well I didn't try to do it :)
21:27
<
flux >
p4bl0: well List.concat takes `'a list list`
21:27
<
flux >
your takes two `'a list`
21:27
<
p4bl0 >
Ah, I didn't remember that :)
21:28
<
p4bl0 >
then yes, you need an additional fold to concat each lists
21:30
<
p4bl0 >
let concat = List.fold_left (fun acc l -> List.fold_right (fun x l -> x :: l) acc l) [];;
21:31
<
Fardale >
defolos: I think you need the local cache to query that. So I guess you need to do opam init first
21:41
<
quarters >
thanks p4bl0
21:43
<
quarters >
I should have included that the signature is like this: let concat (lists : 'a list list) : 'a list
21:43
jbrown has quit [Remote host closed the connection]
21:46
<
p4bl0 >
you said List.concat, it was reasonnable to assume that the signature was known :)
21:46
<
p4bl0 >
flux got it
21:50
<
defolos >
Fardale: hm, that's a pitty
21:50
<
defolos >
I literally just want the package names and the corresponding versions
21:59
<
Fardale >
defolos: you can just look at the opam file then
22:04
malc_` has joined #ocaml
22:08
<
defolos >
Fardale: I need access from a script
22:08
<
defolos >
and do some fiddling with the output
22:13
mnxn has quit [Ping timeout: 256 seconds]
22:13
<
Fardale >
Why is this a problem to do opam init in your script?
22:49
mnxn has joined #ocaml
22:51
<
quarters >
is there a way to decompose a string for pattern matching the one does with lists?
22:58
Haudegen has quit [Ping timeout: 258 seconds]
23:31
malc_` has quit [Ping timeout: 258 seconds]