malc__ has quit [Read error: 145 (Connection timed out)]
smimou has quit ["bli"]
love-pingoo has joined #ocaml
bluestorm_ has quit ["Konversation terminated!"]
malc_ has joined #ocaml
mnemonic has joined #ocaml
love-pingoo has quit [Read error: 110 (Connection timed out)]
Submarine has joined #ocaml
Submarine has quit [Client Quit]
eradman has quit [calvino.freenode.net irc.freenode.net]
Mr_Awesome has quit [calvino.freenode.net irc.freenode.net]
mbishop has quit [calvino.freenode.net irc.freenode.net]
oracle1 has quit [calvino.freenode.net irc.freenode.net]
danly has quit [calvino.freenode.net irc.freenode.net]
ozzloy has quit [calvino.freenode.net irc.freenode.net]
jdev has quit [calvino.freenode.net irc.freenode.net]
descender has quit [calvino.freenode.net irc.freenode.net]
pants1 has quit [calvino.freenode.net irc.freenode.net]
cypher23 has quit [calvino.freenode.net irc.freenode.net]
fremo has quit [calvino.freenode.net irc.freenode.net]
ppsmimou has quit [calvino.freenode.net irc.freenode.net]
tsuyoshi has quit [calvino.freenode.net irc.freenode.net]
eroyf has quit [calvino.freenode.net irc.freenode.net]
pango_ has quit [calvino.freenode.net irc.freenode.net]
zagzig has quit [calvino.freenode.net irc.freenode.net]
ozzloy has joined #ocaml
danly has joined #ocaml
oracle1 has joined #ocaml
jdev has joined #ocaml
mbishop has joined #ocaml
Mr_Awesome has joined #ocaml
pango_ has joined #ocaml
pants1 has joined #ocaml
cypher23 has joined #ocaml
descender has joined #ocaml
fremo has joined #ocaml
eradman has joined #ocaml
zagzig has joined #ocaml
ppsmimou has joined #ocaml
tsuyoshi has joined #ocaml
eroyf has joined #ocaml
descender has quit [calvino.freenode.net irc.freenode.net]
descender has joined #ocaml
descender has quit [Read error: 110 (Connection timed out)]
malc_ has quit ["leaving"]
falconair_ has quit [Read error: 145 (Connection timed out)]
pstickne has quit [Connection reset by peer]
pstickne has joined #ocaml
descender has joined #ocaml
pstickne has quit [Connection reset by peer]
pstickne has joined #ocaml
zagzig has quit [Read error: 110 (Connection timed out)]
zagzig has joined #ocaml
levi_home has quit [Read error: 113 (No route to host)]
levi_home has joined #ocaml
Smerdyakov has quit ["Leaving"]
dark_light has joined #ocaml
shawn has quit [Read error: 110 (Connection timed out)]
mnemonic has quit ["leaving"]
prly has joined #ocaml
prly_ has joined #ocaml
diffbavis has quit [Read error: 54 (Connection reset by peer)]
prly__ has quit [Read error: 110 (Connection timed out)]
prly has quit [Read error: 110 (Connection timed out)]
bhauth has joined #ocaml
prly has joined #ocaml
shawn has joined #ocaml
prly_ has quit [Read error: 110 (Connection timed out)]
prly_ has joined #ocaml
diffbavis has joined #ocaml
Mr_Awesome has quit ["...and the Awesome level drops"]
shawn has quit [Success]
shawn has joined #ocaml
prly has quit [Read error: 110 (Connection timed out)]
pstickne has quit ["Leaving"]
prly has joined #ocaml
prly_ has quit [Read error: 110 (Connection timed out)]
prly_ has joined #ocaml
pstickne has joined #ocaml
prly has quit [Read error: 110 (Connection timed out)]
prly has joined #ocaml
diffbavis has quit [Read error: 110 (Connection timed out)]
prly__ has joined #ocaml
prly_ has quit [Read error: 110 (Connection timed out)]
prly_ has joined #ocaml
prly has quit [Read error: 110 (Connection timed out)]
prly__ has quit [Read error: 110 (Connection timed out)]
diffbavis has joined #ocaml
bluestorm has joined #ocaml
bluestorm has quit [Read error: 104 (Connection reset by peer)]
ikaros has quit ["Leaving"]
fremo has quit [Remote closed the connection]
ikaros has joined #ocaml
smimou has joined #ocaml
love-pingoo has joined #ocaml
ikaros has quit [Read error: 110 (Connection timed out)]
ikaros has joined #ocaml
love-pingoo has quit [Read error: 145 (Connection timed out)]
love-pingoo has joined #ocaml
prly_ has left #ocaml []
smimou has quit ["bli"]
smimou has joined #ocaml
malc_ has joined #ocaml
bluestorm has joined #ocaml
diffbavis has quit [Read error: 54 (Connection reset by peer)]
jlouis has quit [Remote closed the connection]
swater has joined #ocaml
whatsup103 has quit [Read error: 104 (Connection reset by peer)]
diffbavis has joined #ocaml
jlouis has joined #ocaml
Smerdyakov has joined #ocaml
smimp has joined #ocaml
pango_ has quit [Remote closed the connection]
pango_ has joined #ocaml
swater has quit [Read error: 110 (Connection timed out)]
slowriot has joined #ocaml
<
slowriot>
is there any built-in function in ocaml that will take two equally-sized lists and return a list of pairs, similar to zip in haskell?
<
slowriot>
example: zip "abc" "def" = [('a','d'),('b','e'),('c','f')]
<
Smerdyakov>
Have you looked at the standard library documentation?
<
love-pingoo>
slowriot: map2 is for you
<
love-pingoo>
let zip = List.map2 (fun x y -> (x,y))
<
Smerdyakov>
love-pingoo, not the best answer, and thank you for countering my attempt to help him find the answer himself.
<
love-pingoo>
Smerdyakov: hehe, we don't change much ;)
slowriot2 has joined #ocaml
<
slowriot2>
got disconnected
<
Smerdyakov>
Have you looked at the standard library documentation?
<
slowriot2>
I did look for it in the standard library a little bit
<
Smerdyakov>
What procedure did you use to look for it?
slowriot has quit [Read error: 104 (Connection reset by peer)]
<
slowriot2>
randomly navigating through different modules
<
Smerdyakov>
Bad idea.
<
slowriot2>
okay, what should I have done?
<
Smerdyakov>
Start at the index for the standard library and figure out which modules are likely to be related.
<
slowriot2>
aha.. combine
<
slowriot2>
okay, thanks
slowriot2 is now known as slowriot
benny_ has joined #ocaml
benny has quit [Read error: 60 (Operation timed out)]
descender has quit ["Elegance has the disadvantage that hard work is needed to achieve it and a good education to appreciate it. - E. W. Dijkstra"]
swater has joined #ocaml
descender has joined #ocaml
_JusSx_ has joined #ocaml
pango has joined #ocaml
slowriot has quit [Read error: 131 (Connection reset by peer)]
pango_ has quit [Remote closed the connection]
slowriot has joined #ocaml
<
slowriot>
does ocaml have an equivalent of haskell's ($) operator?
bluestorm has quit [Read error: 104 (Connection reset by peer)]
bluestorm has joined #ocaml
<
bluestorm>
slowriot:
<
bluestorm>
let ( $ ) a b = a b;;
bluestorm has quit [Remote closed the connection]
bluestorm has joined #ocaml
Mr_Awesome has joined #ocaml
smimp has quit ["Lost terminal"]
jlouis has quit [Remote closed the connection]
love-pingoo has quit ["Connection reset by pear"]
jlouis has joined #ocaml
dark_light has quit [Connection timed out]
descender has quit ["Elegance has the disadvantage that hard work is needed to achieve it and a good education to appreciate it. - E. W. Dijkstra"]
descender has joined #ocaml
<
flux->
however $ might be a bad choice if you use camlp4
<
flux->
but I believe its associativity are nice.. maybe @ had the same associativity (but it can be looked up from the documentation in any case)
<
mbishop>
Isn't haskell's $ like SML's 'o'?
<
jlouis>
mbishop, no
<
jlouis>
SML's o is like Haskells .
<
jlouis>
f $ x = f (x) -- it kills a parenthesis group but it has type $: ('a -> 'b) -> 'a -> 'b
<
jlouis>
This is not what 'o' or '.' has
bzzbzz has joined #ocaml
Mr_Awesome has quit ["...and the Awesome level drops"]
swater has quit ["Quat"]
slowriot has quit [Read error: 104 (Connection reset by peer)]
_JusSx_ has quit [Client Quit]