adrien changed the topic of #ocaml to: Discussions about the OCaml programming language | http://www.ocaml.org | Upcoming OCaml MOOC: https://huit.re/ocamlmooc | OCaml 4.03.0 release notes: http://ocaml.org/releases/4.03.html | Try OCaml in your browser: http://try.ocamlpro.com | Public channel logs at http://irclog.whitequark.org/ocaml
mcc has joined #ocaml
ontologiae has joined #ocaml
ontologiae has quit [Ping timeout: 244 seconds]
pyon has quit [Quit: Fix config.]
pyon has joined #ocaml
pyon has quit [Client Quit]
pyon has joined #ocaml
wolfcore has quit [Ping timeout: 258 seconds]
pyon has quit [Quit: Dammit, Emacs.]
wolfcore has joined #ocaml
pyon has joined #ocaml
shon has quit [Remote host closed the connection]
hay207__ has quit [Ping timeout: 244 seconds]
wolfcore has quit [Ping timeout: 260 seconds]
rgrinberg has quit [Ping timeout: 244 seconds]
wolfcore has joined #ocaml
SilverKey has quit [Quit: Cheerio!]
bruce_r has quit [Ping timeout: 250 seconds]
strykerkkd has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
hay207__ has joined #ocaml
fraggle_ has quit [Ping timeout: 260 seconds]
fraggle_ has joined #ocaml
bruce_r has joined #ocaml
shon has joined #ocaml
shon has quit [Remote host closed the connection]
Reshi has joined #ocaml
pierpa has joined #ocaml
Reshi has quit [Quit: WeeChat 1.5]
tvynr has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
pyon has quit [Quit: Fix config.]
pyon has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
MercurialAlchemi has joined #ocaml
SilverKey has joined #ocaml
SilverKey has quit [Quit: Halted.]
tmtwd has joined #ocaml
FreeBirdLjj has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 240 seconds]
FreeBirdLjj has quit [Ping timeout: 252 seconds]
sh0t has joined #ocaml
Simn has joined #ocaml
MercurialAlchemi has joined #ocaml
slash^ has joined #ocaml
jjk has quit [Ping timeout: 258 seconds]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 244 seconds]
laserpants has quit [Ping timeout: 244 seconds]
fluter has quit [Ping timeout: 250 seconds]
tmtwd has quit [Ping timeout: 258 seconds]
FreeBirdLjj has joined #ocaml
bruce_r has quit [Ping timeout: 258 seconds]
tmtwd has joined #ocaml
laserpants has joined #ocaml
dexterph has joined #ocaml
mcc has quit [Quit: Connection closed for inactivity]
zpe has joined #ocaml
AlexRussia has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
Algebr` has joined #ocaml
antoro_ is now known as antoro
dhil has joined #ocaml
FreeBirdLjj has joined #ocaml
kev has joined #ocaml
AlexRussia has quit [Ping timeout: 244 seconds]
jwatzman|work has joined #ocaml
tmtwd has quit [Ping timeout: 265 seconds]
fluter has joined #ocaml
freehck has quit [Remote host closed the connection]
shon has joined #ocaml
AlexRussia has joined #ocaml
shon has quit [Ping timeout: 240 seconds]
sh0t has quit [Remote host closed the connection]
hyperboreean has quit [Quit: leaving]
hyperboreean has joined #ocaml
Algebr` has quit [Ping timeout: 264 seconds]
ygrek has quit [Ping timeout: 250 seconds]
evhan has joined #ocaml
kev has quit [Read error: Connection reset by peer]
Xizor has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
jwatzman|work has joined #ocaml
govg has quit [Quit: leaving]
FreeBirdLjj has quit [Remote host closed the connection]
rand__ has joined #ocaml
Muzer has quit [Read error: Connection reset by peer]
Muzer has joined #ocaml
soupault has joined #ocaml
Algebr` has joined #ocaml
FreeBirdLjj has joined #ocaml
sdothum has joined #ocaml
dave24 has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 264 seconds]
soupault has quit [Remote host closed the connection]
soupault has joined #ocaml
tane has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
silver has joined #ocaml
kakadu has joined #ocaml
FreeBirdLjj has joined #ocaml
laserpants has quit [Quit: Leaving]
tobiasBora has joined #ocaml
SilverKey has joined #ocaml
agarwal1975 has quit [Quit: agarwal1975]
ggole has joined #ocaml
reynir is now known as zreynir
jwatzman|work has joined #ocaml
jwatzman|work has quit [Client Quit]
Anarchos has joined #ocaml
SilverKey has quit [Quit: Halted.]
SilverKey has joined #ocaml
jwatzman|work has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
rand__ has quit [Ping timeout: 258 seconds]
NingaLeaf has joined #ocaml
NingaLeaf has left #ocaml [#ocaml]
agarwal1975 has joined #ocaml
mbrock has joined #ocaml
Anarchos has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
fraggle-boate has joined #ocaml
zreynir is now known as reynir
rgrinberg has joined #ocaml
rgrinberg has quit [Client Quit]
rgrinberg has joined #ocaml
Anarchos has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
al-damiri has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 260 seconds]
shon has joined #ocaml
Algebr` has quit [Ping timeout: 240 seconds]
sepp2k has joined #ocaml
tane has quit [Quit: Verlassend]
shinnya has joined #ocaml
Heasummn has joined #ocaml
dexterph has quit [Ping timeout: 240 seconds]
Anarchos has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
dexterph has joined #ocaml
dhil has quit [Ping timeout: 250 seconds]
darkf has quit [Ping timeout: 250 seconds]
tane has joined #ocaml
MercurialAlchemi has joined #ocaml
Intensity has quit [Remote host closed the connection]
shon has quit [Remote host closed the connection]
tristero has joined #ocaml
SilverKey has quit [Ping timeout: 250 seconds]
rand__ has joined #ocaml
unbalancedparen has joined #ocaml
unbalancedparen has quit [Client Quit]
unbalancedparen has joined #ocaml
jwatzman|work has quit [Quit: jwatzman|work]
copy` has joined #ocaml
soupault has quit [Ping timeout: 244 seconds]
shon has joined #ocaml
<Heasummn> Is there a function in either the std lib, or Batteries, that joins a list into a string?
<Heasummn> ah, concat
<Heasummn> damn it though. My list isn't made of strings
Anarchos has joined #ocaml
<Heasummn> I can map that list to convert it to a string list and then concat
zpe has quit [Remote host closed the connection]
tane has quit [Quit: Leaving]
SpiceGuid has joined #ocaml
bruce_r has joined #ocaml
dhil has joined #ocaml
shon has quit [Ping timeout: 250 seconds]
bruce_r has quit [Ping timeout: 258 seconds]
unbalancedparen has quit [Quit: WeeChat 1.4]
tane has joined #ocaml
unbalancedparen has joined #ocaml
Anarchos has left #ocaml [#ocaml]
ygrek has joined #ocaml
ontologiae has joined #ocaml
ontologiae has quit [Ping timeout: 260 seconds]
manizzle has joined #ocaml
SpiceGuid has quit [Quit: ChatZilla 0.9.92 [SeaMonkey 2.40/20160120202951]]
jeffmo has joined #ocaml
bobry has joined #ocaml
<ggole> Gah, screwed by bool + if again -_-. Always use a data type!
<flux> bool + if?
hcarty has joined #ocaml
<ggole> Where you pass the wrong value but it looks fine because its just another bool
<flux> oh so you mean instead of if connection = Established then you have if connected?
<ggole> Yeah
shon has joined #ocaml
bruce_r has joined #ocaml
mbrock has quit [Quit: Connection closed for inactivity]
shon has quit [Ping timeout: 244 seconds]
<Drup> ggole: labels!
mcspud has quit [Ping timeout: 250 seconds]
mcspud has joined #ocaml
kakadu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dave24 has quit [Quit: leaving]
<_andre> has anyone seen this in Async code? "Error in my_thread_global_end(): 1 threads didn't exit"
slash^ has joined #ocaml
zpe has joined #ocaml
<_andre> hrm seems to be caused by async's printf
mbrock has joined #ocaml
SpiceGuid has joined #ocaml
shinnya has quit [Ping timeout: 240 seconds]
serge has joined #ocaml
serge is now known as Guest40448
Guest40448 has quit [Client Quit]
two_wheels has joined #ocaml
henrytill has quit [Ping timeout: 250 seconds]
henrytill has joined #ocaml
Orion3k has joined #ocaml
shon has joined #ocaml
shon has quit [Ping timeout: 258 seconds]
kakadu has joined #ocaml
govg has joined #ocaml
_andre has quit [Quit: leaving]
bruce_r has quit [Ping timeout: 258 seconds]
slash^ has quit [Read error: Connection reset by peer]
shon has joined #ocaml
shon has quit [Ping timeout: 260 seconds]
SpiceGuid has quit [Quit: ChatZilla 0.9.92 [SeaMonkey 2.40/20160120202951]]
MercurialAlchemi has quit [Ping timeout: 250 seconds]
Heasummn has quit [Read error: No route to host]
rbocquet has quit [Ping timeout: 258 seconds]
two_wheels has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
two_wheels has joined #ocaml
rbocquet has joined #ocaml
Heasummn has joined #ocaml
shon has joined #ocaml
shon has quit [Ping timeout: 240 seconds]
aphprentice has joined #ocaml
dhil has quit [Ping timeout: 250 seconds]
zpe has quit [Remote host closed the connection]
hcarty has quit [Quit: WeeChat 1.5]
two_wheels has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bobry has quit [Quit: Connection closed for inactivity]
mbrock has quit [Quit: Connection closed for inactivity]
sepp2k has quit [Quit: Leaving.]
Xizor has quit []
ggole has quit []
two_wheels has joined #ocaml
Heasummn has quit [Ping timeout: 264 seconds]
shon has joined #ocaml
c0x0 has joined #ocaml
Simn has quit [Read error: Connection reset by peer]
shon has quit [Ping timeout: 258 seconds]
lam has joined #ocaml
lam has left #ocaml [#ocaml]
rand__ has quit [Quit: leaving]
ygrek has quit [Remote host closed the connection]
ygrek has joined #ocaml
antoro is now known as antoro_
dexterph` has joined #ocaml
dexterph has quit [Ping timeout: 240 seconds]
agarwal1975 has quit [Quit: agarwal1975]
tane has quit [Quit: Leaving]
dexterph` has quit [Ping timeout: 244 seconds]
nsxt has joined #ocaml
<nsxt> Hi... Is it possible to "abbreviate" functions when using them in higher order functions? For example, in Haskell, you can do something like this:
<nsxt> map (++ "s") ["a", "b", "c"]
bruce_r has joined #ocaml
<nsxt> Is there an equivalent way of expressing that in OCaml?
aphprentice has quit [Quit: Connection closed for inactivity]
<artart78> List.map ((^) "s") ["a"; "b"; "c"] ?
<nsxt> Oh, I didn't know you had to surround the infix operator with parens...
<nsxt> Thank you!
<nsxt> Oh wait, that's not _quite_ right...
<nsxt> The Haskell example yields ["as", "bs", "cs"].
<nsxt> This yields ["sa"; "sb"; "sc"].
<artart78> the parentheses change an infix operator to a prefix one
<artart78> oh yeah sorry, I didn't know what the haskell code did :D
<nsxt> Is there a "flip"?
<artart78> then I don't think there's any way, at least not in the standard lib
<nsxt> Seems only JS Core has "flip" defined. Thank you!
al-damiri has quit [Quit: Connection closed for inactivity]
<mrvn> fun x -> x ^ "s"
<nsxt> @mrvn, yeah, I was looking for a shorter way to express that.
<pierpa> you can remove some of the white spaces
<mrvn> let flip f x y = f y x
<mrvn> List.mal (flip (^) "s")
<mrvn> List.map (fun x->x^"s")
<mrvn> shorter?
<pierpa> there's still one superfluous space
al-damiri has joined #ocaml
mcc has joined #ocaml
nsxt has quit [Quit: Leaving]
pierpa has quit [Ping timeout: 252 seconds]
shon has joined #ocaml