<_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.