adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | OCaml 4.09 release notes: https://caml.inria.fr/pub/distrib/ocaml-4.09/notes/Changes | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
rwmjones has quit [Quit: ZNC - 1.6.0 - http://znc.in]
rwmjones has joined #ocaml
ollehar has quit [Ping timeout: 240 seconds]
mnxn has joined #ocaml
mnxn has quit [Client Quit]
mnxn has joined #ocaml
ollehar has joined #ocaml
malc_ has quit [Ping timeout: 240 seconds]
Haudegen has quit [Ping timeout: 240 seconds]
malc_ has joined #ocaml
nicoo has quit [Ping timeout: 240 seconds]
mnxn has quit [Quit: mnxn]
nicoo has joined #ocaml
waleee-cl has quit [Quit: Connection closed for inactivity]
gaussian has quit [Ping timeout: 264 seconds]
remexre has joined #ocaml
mbuf has joined #ocaml
dborisog has joined #ocaml
narimiran has joined #ocaml
quarters has quit [Ping timeout: 256 seconds]
mnxn has joined #ocaml
mnxn has quit [Quit: mnxn]
quarters has joined #ocaml
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]
troydm has joined #ocaml
mnxn has joined #ocaml
ggole has joined #ocaml
osa1 has joined #ocaml
quarters has quit [Ping timeout: 264 seconds]
<swapnilraj[m]> Does this help you?
brown121407 has joined #ocaml
osa1 has quit [Quit: osa1]
osa1 has joined #ocaml
mnxn has quit [Quit: mnxn]
brown121407 has quit [Remote host closed the connection]
osa1 has quit [Ping timeout: 246 seconds]
brown121407 has joined #ocaml
mnxn has joined #ocaml
mnxn1 has joined #ocaml
mnxn has quit [Ping timeout: 240 seconds]
mnxn has joined #ocaml
mnxn1 has quit [Ping timeout: 258 seconds]
snowpanda has quit [Quit: Leaving...]
jnavila has joined #ocaml
jnavila has quit [Ping timeout: 272 seconds]
jnavila has joined #ocaml
mnxn has quit [Quit: mnxn]
brown121407 has quit [Remote host closed the connection]
narimiran has quit [Ping timeout: 240 seconds]
GeoffK has joined #ocaml
Haudegen has joined #ocaml
infinity0 has quit [Remote host closed the connection]
infinity0 has joined #ocaml
nullcone has quit [Quit: Connection closed for inactivity]
GeoffK has quit [Quit: Leaving]
waleee-cl has joined #ocaml
osa1 has joined #ocaml
malc_` has joined #ocaml
hannes_ has joined #ocaml
rntz2_ has joined #ocaml
dmbaturin_ has joined #ocaml
AdmWiggin has joined #ocaml
malc_ has quit [*.net *.split]
catern has quit [*.net *.split]
hannes has quit [*.net *.split]
dmbaturin has quit [*.net *.split]
rntz2 has quit [*.net *.split]
tianon has quit [*.net *.split]
catern has joined #ocaml
Haudegen has quit [Ping timeout: 240 seconds]
Haudegen has joined #ocaml
osa1 has quit [Ping timeout: 258 seconds]
mbuf has quit [Quit: Leaving]
rockethead has joined #ocaml
inkbottle has quit [Quit: Konversation terminated!]
zebrag has joined #ocaml
malc_` has quit [Ping timeout: 240 seconds]
rockethead has quit [Quit: rockethead]
osa1 has joined #ocaml
RalfJ has quit [Remote host closed the connection]
gaussian has joined #ocaml
RalfJ has joined #ocaml
dborisog has quit [Ping timeout: 240 seconds]
Haudegen has quit [Ping timeout: 256 seconds]
Jesin has quit [Quit: Leaving]
malc_` has joined #ocaml
mnxn has joined #ocaml
tane has joined #ocaml
osa1 has quit [Quit: osa1]
Jesin has joined #ocaml
mnxn has quit [Quit: mnxn]
Haudegen has joined #ocaml
Haudegen has quit [Ping timeout: 260 seconds]
Haudegen has joined #ocaml
inkbottle has joined #ocaml
zebrag has quit [Ping timeout: 264 seconds]
Haudegen has quit [Quit: Bin weg.]
bartholin has quit [Ping timeout: 260 seconds]
osa1 has joined #ocaml
narimiran has joined #ocaml
mnxn has joined #ocaml
osa1 has quit [Ping timeout: 246 seconds]
artymort has quit [Remote host closed the connection]
nullcone has joined #ocaml
Haudegen has joined #ocaml
malc_` has quit [Ping timeout: 264 seconds]
quarters has joined #ocaml
<quarters> hello. I was wondering how one can implement List.concat with only List.fold_right or List.fold_left
mnxn has quit [Quit: mnxn]
ggole has quit [Quit: Leaving]
mal`` has quit [Quit: Leaving]
mal`` has joined #ocaml
<flux> well, you probably need more than just one fold. so one inside the other.
bartholin has joined #ocaml
hannes_ is now known as hannes
<defolos> Can I somehow run opam commands without running opam init first?
<defolos> I just want to query an opam file for its dependencies but nothing in addition, so running opam init shouldn't be required
jnavila has quit [Quit: Konversation terminated!]
mnxn has joined #ocaml
tane has quit [Quit: Leaving]
narimiran has quit [Quit: leaving]
<p4bl0> flux: what? No you don't need more than one fold :)
<p4bl0> quarters: List.fold_right (fun x l -> x :: l) [1;2;3] [4;5;6];;
<flux> oh. well I didn't try to do it :)
<flux> p4bl0: well List.concat takes `'a list list`
<flux> your takes two `'a list`
<p4bl0> Ah, I didn't remember that :)
<p4bl0> then yes, you need an additional fold to concat each lists
<p4bl0> let concat = List.fold_left (fun acc l -> List.fold_right (fun x l -> x :: l) acc l) [];;
<Fardale> defolos: I think you need the local cache to query that. So I guess you need to do opam init first
<quarters> thanks p4bl0
<quarters> I should have included that the signature is like this: let concat (lists : 'a list list) : 'a list
jbrown has quit [Remote host closed the connection]
<p4bl0> you said List.concat, it was reasonnable to assume that the signature was known :)
<p4bl0> flux got it
<defolos> Fardale: hm, that's a pitty
<defolos> I literally just want the package names and the corresponding versions
<Fardale> defolos: you can just look at the opam file then
malc_` has joined #ocaml
<defolos> Fardale: I need access from a script
<defolos> and do some fiddling with the output
mnxn has quit [Ping timeout: 256 seconds]
<Fardale> Why is this a problem to do opam init in your script?
mnxn has joined #ocaml
<quarters> is there a way to decompose a string for pattern matching the one does with lists?
Haudegen has quit [Ping timeout: 258 seconds]
malc_` has quit [Ping timeout: 258 seconds]