kvda has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rwmjones_IMSmtg has quit [Ping timeout: 268 seconds]
iovec has quit [Quit: Connection closed for inactivity]
jerme_ has quit [*.net *.split]
thizanne has quit [*.net *.split]
toppler has joined #ocaml
spew has quit [Quit: Connection closed for inactivity]
thizanne has joined #ocaml
jerme_ has joined #ocaml
rwmjones has joined #ocaml
silver_ has joined #ocaml
ravenousmoose has joined #ocaml
silver has quit [Ping timeout: 240 seconds]
silver_ has quit [Client Quit]
ravenousmoose has quit [Ping timeout: 246 seconds]
FreeBirdLjj has joined #ocaml
brettgilio has quit [Ping timeout: 245 seconds]
jerme_ has quit [*.net *.split]
thizanne has quit [*.net *.split]
FreeBirdLjj has quit [Ping timeout: 240 seconds]
thizanne has joined #ocaml
jerme_ has joined #ocaml
jaar has quit [Ping timeout: 240 seconds]
brettgilio has joined #ocaml
toppler has quit [Ping timeout: 276 seconds]
toppler has joined #ocaml
jerme_ has quit [*.net *.split]
thizanne has quit [*.net *.split]
jerme_ has joined #ocaml
thizanne has joined #ocaml
toppler has quit [Ping timeout: 268 seconds]
toppler has joined #ocaml
thizanne has quit [*.net *.split]
jerme_ has quit [*.net *.split]
jerme_ has joined #ocaml
thizanne has joined #ocaml
nullifidian__ has joined #ocaml
nullifidian_ has quit [Ping timeout: 246 seconds]
cartwright has quit [Ping timeout: 260 seconds]
cartwright has joined #ocaml
toppler has quit [Ping timeout: 276 seconds]
tormen_ has joined #ocaml
nullifidian_ has joined #ocaml
nullifidian__ has quit [Read error: Connection reset by peer]
toppler has joined #ocaml
tormen has quit [Ping timeout: 245 seconds]
wilfredh has quit [Quit: Connection closed for inactivity]
mbuf has joined #ocaml
toppler has quit [Ping timeout: 265 seconds]
toppler has joined #ocaml
cartwright has quit [Remote host closed the connection]
cartwright has joined #ocaml
retropikzel has joined #ocaml
mfp has quit [Ping timeout: 268 seconds]
nicoo has quit [Remote host closed the connection]
nicoo has joined #ocaml
ggole has joined #ocaml
toppler has quit [Ping timeout: 276 seconds]
gravicappa has joined #ocaml
retropikzel has quit [Remote host closed the connection]
toppler has joined #ocaml
jerme_ has quit [*.net *.split]
thizanne has quit [*.net *.split]
jerme_ has joined #ocaml
thizanne has joined #ocaml
toppler has quit [Ping timeout: 240 seconds]
rwmjones is now known as rjones_IMSmtg
rjones_IMSmtg is now known as rwmjones_IMSmtg
narimiran has joined #ocaml
ggole has quit [Quit: Leaving]
toppler has joined #ocaml
Haudegen has joined #ocaml
_whitelogger has joined #ocaml
toppler has quit [Ping timeout: 240 seconds]
rgherdt has joined #ocaml
toppler has joined #ocaml
Serpent7776 has joined #ocaml
<Nikkel>
Does Lwt have a liftM-like function?
<Nikkel>
so liftM : (a -> b) -> (a -> b Lwt.t)
<Nikkel>
ah, wrap
malina has quit [Remote host closed the connection]
barockobamo has joined #ocaml
toppler has quit [Ping timeout: 240 seconds]
pino|work has joined #ocaml
nullifidian__ has joined #ocaml
nullifidian_ has quit [Ping timeout: 240 seconds]
ggole has joined #ocaml
toppler has joined #ocaml
gareppa has joined #ocaml
bartholin has quit [Remote host closed the connection]
bitwinery has quit [Quit: Leaving]
toppler has quit [Ping timeout: 240 seconds]
KeyJoo has joined #ocaml
gareppa has quit [Quit: Leaving]
wyn44 has joined #ocaml
rgherdt has quit [Ping timeout: 246 seconds]
toppler has joined #ocaml
narimiran has quit [Remote host closed the connection]
narimiran has joined #ocaml
KeyJoo has quit [Quit: KeyJoo]
jaar has joined #ocaml
toppler has quit [Ping timeout: 265 seconds]
toppler has joined #ocaml
rgherdt has joined #ocaml
kgop has quit [Read error: Connection reset by peer]
kgop has joined #ocaml
FreeBirdLjj has joined #ocaml
toppler has quit [Ping timeout: 276 seconds]
mfp has joined #ocaml
toppler has joined #ocaml
barockobamo has quit [Remote host closed the connection]
rgherdt has quit [Ping timeout: 268 seconds]
silver has joined #ocaml
barockobamo has joined #ocaml
rgherdt has joined #ocaml
toppler has quit [Ping timeout: 268 seconds]
Haudegen has quit [Quit: Bin weg.]
kakadu has joined #ocaml
kakadu_ has quit [Ping timeout: 240 seconds]
greenbagels is now known as redbagels
kakadu_ has joined #ocaml
kakadu has quit [Ping timeout: 240 seconds]
spew has joined #ocaml
toppler has joined #ocaml
pino|work has quit [Quit: bye]
rgherdt has quit [Ping timeout: 245 seconds]
nullifidian__ is now known as nullifidian
barockobamo has quit [Remote host closed the connection]
barockobamo has joined #ocaml
gahr has quit [Quit: leaving]
barockobamo has quit [Remote host closed the connection]
gahr has joined #ocaml
barockobamo has joined #ocaml
toppler has quit [Ping timeout: 246 seconds]
Haudegen has joined #ocaml
toppler has joined #ocaml
wyn44 has quit [Ping timeout: 240 seconds]
retropikzel has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
FreeBirdLjj has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 250 seconds]
zolk3ri has joined #ocaml
gareppa has joined #ocaml
jaar has quit [Ping timeout: 246 seconds]
barockobamo has quit [Remote host closed the connection]
gareppa has quit [Remote host closed the connection]
rgherdt has joined #ocaml
barockobamo has joined #ocaml
mbuf has quit [Quit: Leaving]
toppler has quit [Ping timeout: 252 seconds]
jimt has quit [Ping timeout: 240 seconds]
toppler has joined #ocaml
mbuf has joined #ocaml
musha68k has joined #ocaml
Serpent7776 has quit [Quit: Leaving]
oni-on-ion has joined #ocaml
gareppa has joined #ocaml
rgherdt has quit [Ping timeout: 265 seconds]
musha68k has quit [Ping timeout: 240 seconds]
jaar has joined #ocaml
JBmc has joined #ocaml
JBmc has left #ocaml [#ocaml]
JBmc has joined #ocaml
JBmc has left #ocaml [#ocaml]
gareppa has quit [Quit: Leaving]
amiloradovsky has joined #ocaml
toppler has quit [Ping timeout: 240 seconds]
oni-on-ion has quit [Ping timeout: 245 seconds]
nullifidian_ has joined #ocaml
nullifidian has quit [Ping timeout: 240 seconds]
rgherdt has joined #ocaml
gareppa has joined #ocaml
oni-on-ion has joined #ocaml
amiloradovsky has quit [Ping timeout: 240 seconds]
tane has joined #ocaml
toppler has joined #ocaml
wyn44 has joined #ocaml
gareppa has quit [Quit: Leaving]
wyn44 has quit [Ping timeout: 245 seconds]
rgherdt has quit [Remote host closed the connection]
narimiran has quit [Ping timeout: 268 seconds]
narimiran_ has joined #ocaml
ziyourenxiang has quit [Ping timeout: 240 seconds]
retropikzel has quit [Remote host closed the connection]
Haudegen has quit [Quit: Bin weg.]
amiloradovsky has joined #ocaml
narimiran_ is now known as narimiran
<narimiran>
whoever decided of this order of the arguments for List.nth is an evil person!!
<narimiran>
companion_cube: ...and there is no CCListLabels.nth which fixes this unjustice :'(
<companion_cube>
oh interesting
<narimiran>
i'll make a PR, give me some time to figure out how to do it properly
<companion_cube>
that's unfortunate though -_-
<companion_cube>
there's CCList.get_at_idx
<narimiran>
companion_cube: nice, i'll use that, and forget about PR :D
<narimiran>
argh, this returns an option
<narimiran>
ok, there is `get_at_idx_exn `
<companion_cube>
🚀
barockobamo2 has joined #ocaml
barockobamo has quit [Ping timeout: 265 seconds]
<narimiran>
now for the real question: how would you go from [1; 2; 3; 4; 5; 6] to [[1; 2]; [3;4]; [5; 6]]? tuples would also be fine instead of inner lists.
<narimiran>
wow, `sublists_of_len` is exactly what i need! i had no idea it existed nor how to search for it (i tried "partition", but that's something else)
<narimiran>
thanks, companion_cube!
<companion_cube>
I forgot about it too
<companion_cube>
but looked for `-> .* t t` in the mli :p
barockobamo2 has quit [Remote host closed the connection]
<narimiran>
:)
jaar_ has joined #ocaml
bartholin has joined #ocaml
jaar has quit [Ping timeout: 276 seconds]
<companion_cube>
we do need a hoogle-like tool…
toppler has joined #ocaml
Jesin has joined #ocaml
<narimiran>
and one style question: do you prefer `let f a = a |> foo |> bar |> baz` or `let f = foo %> bar %> baz`?
<narimiran>
IIRC, back in F# land, people usually recommended the first style
<companion_cube>
hmmm, I tend to use the first style
<companion_cube>
or `let f a = baz @@ bar @@ foo a` even :p
mbuf has quit [Quit: Leaving]
<narimiran>
i prefer to read left-to-right, much @@ very @@ you @@ thank :D
mfp has quit [Ping timeout: 240 seconds]
<Armael>
let f a = foo (bar (baz a))
<Armael>
:-)
<Armael>
wait no
<Armael>
let f a = baz (bar (foo a)) *
<narimiran>
Armael: (you (for (goes (same)))) :P
<Armael>
I mean, I think it really depends on the situation
<Armael>
always using |> instead of function application would be silly
<Armael>
(there's also the option of naming the intermediate results using let-bindings to be extra explicit)
<narimiran>
yeah, i either name the intermediate results, or use pipes. but i was wondering what are the opinions about functions where their only argument is just passed to pipes, serves no other purpose
Haudegen has joined #ocaml
Serpent7776 has joined #ocaml
amiloradovsky has quit [Ping timeout: 250 seconds]
wyn44 has joined #ocaml
toppler has quit [Ping timeout: 240 seconds]
toppler has joined #ocaml
brettgilio has quit [Ping timeout: 264 seconds]
brettgilio has joined #ocaml
smazga has quit [Ping timeout: 264 seconds]
smazga has joined #ocaml
smazga has quit [Ping timeout: 240 seconds]
jaar__ has joined #ocaml
jaar_ has quit [Ping timeout: 276 seconds]
nullifidian_ has joined #ocaml
nullifidian has quit [Read error: Connection reset by peer]
jaar__ has quit [Quit: Leaving]
oni-on-ion has quit [Remote host closed the connection]
oni-on-ion has joined #ocaml
wyn44 has quit [Ping timeout: 264 seconds]
smazga has joined #ocaml
kakadu has joined #ocaml
toppler has quit [Ping timeout: 240 seconds]
nullifidian_ is now known as nullifidian
zolk3ri has quit [Remote host closed the connection]
wyn44 has joined #ocaml
toppler has joined #ocaml
jnavila has joined #ocaml
gravicappa has quit [Ping timeout: 268 seconds]
toppler has quit [Ping timeout: 240 seconds]
smazga has quit [Ping timeout: 240 seconds]
gravicappa has joined #ocaml
wyn44 has quit [Ping timeout: 240 seconds]
smazga has joined #ocaml
toppler has joined #ocaml
gravicappa has quit [Ping timeout: 268 seconds]
mfp has joined #ocaml
ygrek_ has joined #ocaml
narimiran has quit [Ping timeout: 240 seconds]
jao has joined #ocaml
tane has quit [Quit: Leaving]
toppler has quit [Ping timeout: 276 seconds]
toppler has joined #ocaml
jnavila has quit [Quit: Konversation terminated!]
Serpent7776 has quit [Quit: leaving]
kvda has joined #ocaml
malina has joined #ocaml
ravenousmoose has joined #ocaml
silver has quit [Ping timeout: 252 seconds]
toppler has quit [Ping timeout: 240 seconds]
wyn44 has joined #ocaml
ravenousmoose has quit [Ping timeout: 246 seconds]
wyn44 has quit [Ping timeout: 264 seconds]
silver has joined #ocaml
toppler has joined #ocaml
smazga has quit [Quit: leaving]
brettgilio has quit [Ping timeout: 245 seconds]
brettgilio has joined #ocaml
ziyourenxiang has joined #ocaml
kakadu has quit [Remote host closed the connection]