adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | Current MOOC: https://huit.re/ocamlmooc | OCaml 4.04.0 release notes: http://ocaml.org/releases/4.04.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
mlly has joined #ocaml
<mlly> Drup: you merge changes to sedlex?
<mlly> can you review my pull request please?
<Drup> mlly: Ah. I couldn't answer you yesterday: No, I'm not sedlex's maintaner, and I don't really have time to dedicate to it, sorry :/
<mlly> nvm
mlly has quit [Ping timeout: 260 seconds]
<cheater> hey guys
<cheater> is there a way to not write let .. in on every line?
<cheater> i have files where that's like 80% of the lines.
<octachron> cheater, I fear that I fail to see why this is a problem?... Nevertheless, There are some tricks to chain computations in some cases that avoid rebinding the same name again and again.
cheater has quit [Read error: Connection reset by peer]
nomicflux has joined #ocaml
struk|desk has quit [Quit: Konversation terminated!]
octachron has quit [Quit: Leaving]
silver_ is now known as silver
mfp has joined #ocaml
cdidd has quit [Remote host closed the connection]
jmiven has quit [Quit: co'o]
jmiven has joined #ocaml
jbrown has quit [Ping timeout: 250 seconds]
fraggle_ has quit [Ping timeout: 260 seconds]
Madars has quit [Ping timeout: 260 seconds]
Madars has joined #ocaml
fraggle_ has joined #ocaml
shon has joined #ocaml
wu_ng has joined #ocaml
cdidd has joined #ocaml
silver has quit [Read error: Connection reset by peer]
jbrown has joined #ocaml
jfntn has joined #ocaml
shon has quit [Read error: Connection reset by peer]
wu_ng has quit [Remote host closed the connection]
pierpa has quit [Ping timeout: 268 seconds]
shon_ has joined #ocaml
shon_ has quit [Remote host closed the connection]
hunteriam has joined #ocaml
bitbckt has quit [K-Lined]
bitbckt has joined #ocaml
bitbckt has joined #ocaml
bitbckt has quit [Changing host]
ygrek has quit [Ping timeout: 244 seconds]
mfp has quit [Ping timeout: 245 seconds]
malina has quit [Quit: Throwing apples of Montserrat]
jfntn has quit [Ping timeout: 250 seconds]
erider has joined #ocaml
erider has quit [Remote host closed the connection]
erider has joined #ocaml
erider has quit [Remote host closed the connection]
jfntn has joined #ocaml
sfri has quit [Write error: Broken pipe]
sfri has joined #ocaml
na9da[m] has quit [Read error: Connection reset by peer]
M-jimt has quit [Read error: Connection reset by peer]
M-ErkkiSeppl has quit [Read error: Connection reset by peer]
srenatus[m] has quit [Read error: Connection reset by peer]
timclassic has quit [Remote host closed the connection]
Bluddy[m] has quit [Read error: Connection reset by peer]
barkmadley[m] has quit [Read error: Connection reset by peer]
M-martinklepsch has quit [Write error: Connection reset by peer]
diamaths[m] has quit [Read error: Connection reset by peer]
lpw25[m] has quit [Remote host closed the connection]
M-Illandan has quit [Write error: Connection reset by peer]
dfeldman[m] has quit [Read error: Connection reset by peer]
Guest23668[m] has quit [Read error: Connection reset by peer]
regnat[m] has quit [Read error: Connection reset by peer]
aspiwack[m] has quit [Read error: Connection reset by peer]
M-pesterhazy has quit [Write error: Connection reset by peer]
XC[m] has quit [Read error: Connection reset by peer]
regnt[m] has quit [Write error: Connection reset by peer]
matth[m] has quit [Write error: Connection reset by peer]
rpcope has quit [Quit: ZNC - http://znc.in]
rpcope has joined #ocaml
lpw25[m] has joined #ocaml
jao has joined #ocaml
hunteriam has quit [Quit: Connection closed for inactivity]
M-martinklepsch has joined #ocaml
regnat[m] has joined #ocaml
diamaths[m] has joined #ocaml
XC[m] has joined #ocaml
na9da[m] has joined #ocaml
M-jimt has joined #ocaml
aspiwack[m] has joined #ocaml
timclassic has joined #ocaml
regnt[m] has joined #ocaml
M-pesterhazy has joined #ocaml
Bluddy[m] has joined #ocaml
matth[m] has joined #ocaml
srenatus[m] has joined #ocaml
dfeldman[m] has joined #ocaml
M-Illandan has joined #ocaml
Guest23668[m] has joined #ocaml
M-ErkkiSeppl has joined #ocaml
barkmadley[m] has joined #ocaml
ygrek has joined #ocaml
osa1 has joined #ocaml
osa1 has joined #ocaml
osa1 has quit [Changing host]
jao has quit [Ping timeout: 258 seconds]
ygrek has quit [Ping timeout: 258 seconds]
tmtwd has joined #ocaml
govg has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
jfntn has quit [Ping timeout: 246 seconds]
nomicflux has quit [Quit: nomicflux]
Sorella has quit [Quit: Connection closed for inactivity]
osa1 has quit [Ping timeout: 260 seconds]
manizzle has joined #ocaml
MercurialAlchemi has joined #ocaml
jfntn has joined #ocaml
jonasen has joined #ocaml
jfntn has quit [Ping timeout: 244 seconds]
ygrek has joined #ocaml
shinnya has joined #ocaml
d0nn1e has quit [Ping timeout: 250 seconds]
d0nn1e has joined #ocaml
aphprentice has quit [Quit: Connection closed for inactivity]
gjaldon has joined #ocaml
slash^ has joined #ocaml
ygrek has quit [Ping timeout: 250 seconds]
minn has quit [Ping timeout: 240 seconds]
jfntn has joined #ocaml
jfntn has quit [Ping timeout: 260 seconds]
fraggle_ has quit [Ping timeout: 260 seconds]
fraggle_ has joined #ocaml
copy` has quit [Quit: Connection closed for inactivity]
axiles_ has quit [Ping timeout: 265 seconds]
axiles_ has joined #ocaml
TarVanimelde has joined #ocaml
maattdd has joined #ocaml
larhat has quit [Quit: Leaving.]
maattdd has quit [Ping timeout: 240 seconds]
MercurialAlchemi has quit [Ping timeout: 260 seconds]
axiles_ has quit [Ping timeout: 248 seconds]
TarVanimelde has quit [Quit: TarVanimelde]
TarVanimelde has joined #ocaml
axiles_ has joined #ocaml
osa1 has joined #ocaml
osa1 has left #ocaml [#ocaml]
TarVanimelde has quit [Quit: TarVanimelde]
ygrek has joined #ocaml
TarVanimelde has joined #ocaml
tmtwd has quit [Ping timeout: 256 seconds]
Simn has joined #ocaml
jnavila has joined #ocaml
minn has joined #ocaml
TarVanimelde has quit [Quit: TarVanimelde]
TarVanimelde has joined #ocaml
larhat has joined #ocaml
minn has quit [Quit: Leaving]
TarVanimelde has quit [Read error: Connection reset by peer]
TarVanimelde has joined #ocaml
mfp has joined #ocaml
Sim_n has joined #ocaml
Simn has quit [Ping timeout: 246 seconds]
demonimin has quit [Remote host closed the connection]
TarVanimelde has quit [Quit: TarVanimelde]
demonimin has joined #ocaml
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 260 seconds]
rand__ has joined #ocaml
TarVanimelde has joined #ocaml
malina has joined #ocaml
cthuluh has quit [Ping timeout: 256 seconds]
cthuluh has joined #ocaml
complain_ has joined #ocaml
d0nn1e has quit [Ping timeout: 250 seconds]
d0nn1e has joined #ocaml
FreeBirdLjj has joined #ocaml
ygrek has quit [Ping timeout: 260 seconds]
FreeBirdLjj has quit [Ping timeout: 244 seconds]
madroach has quit [Ping timeout: 264 seconds]
madroach has joined #ocaml
Sorella has joined #ocaml
copy` has joined #ocaml
Sim_n has quit [Ping timeout: 240 seconds]
ocaml696 has joined #ocaml
pierpa has joined #ocaml
<ocaml696> Trying to understand how to return from this function.
<ocaml696> let insert l a = if List.mem_assoc a l then let n = List.assoc a l in (a, n+1)::(List.remove_assoc a l) else (a, 1)::l
<ocaml696> I have another function that passes [] and characters one by one.
<ocaml696> insert [] 'a' should return [(a,1)]
<ocaml696> insert [(a,1)] 'b' should return [(a,1),(b,1)]
<zozozo> ocaml696: what's the problem ?
<zozozo> your function work as is
<zozozo> well, except the fact that (insert [('a', 1)] 'b') returns [('b',1); ('a', 1)] (note that 'b' is first, not 'a')
larhat has quit [Quit: Leaving.]
larhat has joined #ocaml
<ocaml696> I mean. How do I take a "string" and iterate and pass each char to this function and get the result at the end ?
<ocaml696> in an imperative loop.
<ocaml696> The calling function is what I mean.
<ocaml696> let x = getfinallist "string";; should give me the final list
<lyxia> ocaml696: you can iterate a string with either a for loop or String.iter
struktured has joined #ocaml
<ocaml696> Really not getting that.
<ocaml696> Iteration is OK. The final list is not returned. How ?
<lyxia> Look at its type, iter does not return any list.
<zozozo> you need something like String.fold (which most likely does not exists, :p
<zozozo> but you can do it with the following snippet : let rec fold f s i acc = if i >= String.length s then acc else fold f s (i + 1) (f s.(i) acc)
<zozozo> ocaml696: ^
rand__ has quit [Ping timeout: 250 seconds]
slash^ has quit [Read error: Connection reset by peer]
<ocaml696> http://pastebin.com/hak24kvn I have suggested code here. Trying. Is there a problem there ?
<zozozo> yup, your 'helper' function iterates across the chars in the string, which is not what you want
<ocaml696> That is what I want.
<zozozo> you want to apply the function to the first char, then *get the return value of the function*, and pass it to the next call of the function (on the second, char), and so on...
<ocaml696> Oh
<zozozo> this is what is called a fold
<zozozo> side note: if you really want to iter, then you'd have to use side-effects to change in-place the value of your multiset)
<ocaml696> fold insert "test" 0;; Like that ?
lucasem has joined #ocaml
nomicflux has joined #ocaml
zpe has joined #ocaml
struktured has quit [Ping timeout: 250 seconds]
nomicflux has quit [Quit: nomicflux]
malina has quit [Ping timeout: 268 seconds]
marsam has joined #ocaml
tristero has quit [Quit: WeeChat 1.6]
tristero has joined #ocaml
struktured has joined #ocaml
TarVanimelde has quit [Quit: TarVanimelde]
malina has joined #ocaml
Sim_n has joined #ocaml
MercurialAlchemi has joined #ocaml
rand__ has joined #ocaml
silver has joined #ocaml
petroav has joined #ocaml
maattdd has joined #ocaml
FreeBirdLjj has joined #ocaml
maattdd has quit [Ping timeout: 260 seconds]
FreeBirdLjj has quit [Ping timeout: 244 seconds]
shinnya has quit [Ping timeout: 250 seconds]
maattdd has joined #ocaml
complain_ has left #ocaml [#ocaml]
petroav has quit [Ping timeout: 246 seconds]
petroav has joined #ocaml
maattdd has quit [Ping timeout: 244 seconds]
petroav has quit [Ping timeout: 246 seconds]
gregoire has quit [Ping timeout: 268 seconds]
gjaldon has quit []
FreeBirdLjj has joined #ocaml
petroav has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
zpe has quit [Read error: Connection reset by peer]
zpe has joined #ocaml
zpe has quit [Ping timeout: 268 seconds]
petroav has quit [Ping timeout: 246 seconds]
marsam has quit [Read error: Connection reset by peer]
demonimin has quit [Remote host closed the connection]
ocaml696 has quit [Ping timeout: 260 seconds]
jnavila has quit [Ping timeout: 256 seconds]
maattdd has joined #ocaml
demonimin has joined #ocaml
demonimin has quit [Changing host]
demonimin has joined #ocaml
sh0t has joined #ocaml
gregoire has joined #ocaml
maattdd has quit [Ping timeout: 268 seconds]
jnavila has joined #ocaml
lucasem has quit [Quit: Connection closed for inactivity]
jnavila has quit [Ping timeout: 260 seconds]
struktured has quit [Ping timeout: 260 seconds]
freusque has joined #ocaml
<andreypopp> Can someone help me to debug a linking issue?
<andreypopp> I get the following in toplevel: https://gist.github.com/andreypopp/40effd9abac03b9c4d8c82e237d9a132
<andreypopp> nvm, I got this...
freusque has quit [Quit: WeeChat 1.4]
maattdd has joined #ocaml
simn__ has joined #ocaml
zpe has joined #ocaml
Sim_n has quit [Ping timeout: 246 seconds]
maattdd has quit [Ping timeout: 260 seconds]
zpe has quit [Ping timeout: 265 seconds]
tristero has quit [Quit: WeeChat 1.6]
isd has quit [Read error: Connection reset by peer]
larhat has quit [Quit: Leaving.]
larhat has joined #ocaml
malina has quit [Ping timeout: 256 seconds]
jlongster has joined #ocaml
malina has joined #ocaml
AlexDenisov has joined #ocaml
ygrek has joined #ocaml
jonasen has quit [Quit: Textual IRC Client: www.textualapp.com]
AlexDeni_ has joined #ocaml
AlexDenisov has quit [Read error: Connection reset by peer]
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
petroav has joined #ocaml
AlexDenisov has joined #ocaml
AlexDeni_ has quit [Ping timeout: 246 seconds]
FreeBirdLjj has quit [Remote host closed the connection]
jlongster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
petroav has quit [Ping timeout: 246 seconds]
nicoo has quit [Ping timeout: 268 seconds]
nicoo has joined #ocaml
jnavila has joined #ocaml
petroav has joined #ocaml
rgrinberg has joined #ocaml
jnavila has quit [Quit: Konversation terminated!]
jnavila has joined #ocaml
malina has quit [Ping timeout: 260 seconds]
<rgrinberg> Is there a way to make opam print the build/install commands its executing?
<flux> not sure, but how about --verbose?
<rgrinberg> flux: That's good. It's much too verbose with all that stdout/stderr output but I should be able to postprocess it. Thanks
kakadu has joined #ocaml
zpe has joined #ocaml
<rgrinberg> Also, is there a way to print the opam file for a package?
<kakadu> opam show asdf --raw?
<rgrinberg> kakadu: thank you!
malina has joined #ocaml
jao has joined #ocaml
jlongster has joined #ocaml
jlongster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
isd has joined #ocaml
jlongster has joined #ocaml
<Drup> rgrinberg: you can control the verbosity with the amount of -v
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
zpe has quit [Remote host closed the connection]
zpe has joined #ocaml
FreeBirdLjj has joined #ocaml
zpe has quit [Ping timeout: 268 seconds]
rand__ has quit [Quit: leaving]
rgrinberg has quit [Ping timeout: 265 seconds]
struktured has joined #ocaml
struktured has quit [Ping timeout: 250 seconds]
jnavila has quit [Remote host closed the connection]
jlongster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
petroav has quit [Ping timeout: 246 seconds]
jlongster has joined #ocaml
jlongster has quit [Client Quit]
jlongster has joined #ocaml
jlongster has quit [Client Quit]
MercurialAlchemi has quit [Ping timeout: 250 seconds]
jlongster has joined #ocaml
jlongster has quit [Read error: No route to host]
jlongster has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
breitenj has quit [Quit: ZNC - 1.6.0 - http://znc.in]
breitenj has joined #ocaml
breitenj has quit [Client Quit]
breitenj has joined #ocaml
agarwal1975 has joined #ocaml
jlongster has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jlongster has joined #ocaml
jlongster has quit [Client Quit]
manizzle has quit [Remote host closed the connection]
manizzle has joined #ocaml
sh0t has quit [Read error: Connection reset by peer]
sh0t has joined #ocaml
kakadu has quit [Remote host closed the connection]