00:04
amk has joined #ocaml
00:29
wingsorc has quit [Read error: Connection reset by peer]
00:30
wingsorc__ has joined #ocaml
01:00
MarvelousWololo has quit [Ping timeout: 260 seconds]
01:12
waleee has quit [Ping timeout: 246 seconds]
02:03
ursa-major has joined #ocaml
02:07
micro has quit [Ping timeout: 258 seconds]
02:16
micro has joined #ocaml
02:25
chrisz has quit [Ping timeout: 245 seconds]
02:27
chrisz has joined #ocaml
02:53
mima has quit [Ping timeout: 252 seconds]
03:08
spip has quit [Quit: Konversation terminated!]
03:13
azimut has quit [Read error: Connection reset by peer]
03:13
azimut has joined #ocaml
03:13
MarvelousWololo has joined #ocaml
03:41
azimut has quit [Ping timeout: 240 seconds]
05:14
bgs has joined #ocaml
06:10
Serpent7776 has joined #ocaml
06:23
Anarchos has joined #ocaml
07:20
Anarchos has quit [Quit: Vision[]: i've been blurred!]
07:22
bgs has quit [Remote host closed the connection]
07:26
mima has joined #ocaml
07:35
anpad has joined #ocaml
07:45
bartholin has joined #ocaml
08:29
spip has joined #ocaml
09:36
MarvelousWololo has quit [Read error: Connection reset by peer]
09:57
Anarchos has joined #ocaml
10:18
wingsorc__ has quit [Ping timeout: 246 seconds]
12:10
Anarchos has quit [Read error: Connection reset by peer]
12:44
mima has quit [Ping timeout: 252 seconds]
12:45
Anarchos has joined #ocaml
12:51
azimut has joined #ocaml
13:01
MuqiuHan[m] has quit [Read error: Connection reset by peer]
13:01
reynir[m] has quit [Remote host closed the connection]
13:01
mclovin has quit [Remote host closed the connection]
13:01
jmcantrell has quit [Read error: Connection reset by peer]
13:01
zebrag[m] has quit [Remote host closed the connection]
13:02
lobo[m] has quit [Remote host closed the connection]
13:14
Anarchos has quit [Ping timeout: 246 seconds]
13:15
mclovin has joined #ocaml
13:22
waleee has joined #ocaml
13:33
Anarchos has joined #ocaml
13:51
Anarchos has quit [Read error: Connection reset by peer]
13:54
bgs has joined #ocaml
14:00
waleee has quit [Ping timeout: 246 seconds]
14:10
MarvelousWololo has joined #ocaml
14:14
bgs has quit [Remote host closed the connection]
15:15
Anarchos has joined #ocaml
15:31
mima has joined #ocaml
15:41
troydm has quit [Ping timeout: 246 seconds]
16:02
<
discocaml >
<xavierm02_> Is there a common name for the function `fun f x -> ignore (f x); x`?
16:02
lobo[m] has joined #ocaml
16:02
reynir[m] has joined #ocaml
16:02
zebrag[m] has joined #ocaml
16:04
jmcantrell has joined #ocaml
16:05
MuqiuHan[m] has joined #ocaml
16:07
Anarchos has quit [Quit: Vision[]: i've been blurred!]
16:11
<
discocaml >
<masterbuilder> I was just wondering this myself earlier
16:15
<
discocaml >
<deepspacejohn> I’ve seen that called `tap`
16:19
<
discocaml >
<xavierm02_> Ah nice. Thank you!
16:26
<
discocaml >
<masterbuilder> Nice
16:28
<
discocaml >
<masterbuilder> I was trying to find something like that in containers, didn't look in there
16:28
<
discocaml >
<masterbuilder> I was trying to find a function that does that on a container, i.e. instead of `map (tap ...) ...` something that does it directly
16:29
<
companion_cube >
tap (Foo.iter …) ?
16:30
<
discocaml >
<masterbuilder> huh, does that work? that idea didn't occur to me
16:30
<
companion_cube >
currying :)
16:31
<
companion_cube >
`[1;2;3] |> CCFun.tap (List.iter (Printf.printf "hello %d\n"))`
16:31
<
discocaml >
<masterbuilder> not sure which I prefer
16:31
<
discocaml >
<masterbuilder> I think that might be cleaner
16:31
<
companion_cube >
it's better than `map` because it doesn't allocate a new list
16:32
<
discocaml >
<masterbuilder> yeah, I like it
16:32
<
discocaml >
<masterbuilder> good stuff ^^
17:12
Serpent7776 has quit [Ping timeout: 245 seconds]
17:16
bartholin has quit [Quit: Leaving]
17:53
waleee has joined #ocaml
18:21
mima has quit [Ping timeout: 240 seconds]
19:08
Tuplanolla has joined #ocaml
19:28
ursa-major has quit [Ping timeout: 245 seconds]
19:30
ursa-major has joined #ocaml
19:43
tom1212 has joined #ocaml
19:44
tom1212 has left #ocaml [#ocaml]
20:17
bartholin has joined #ocaml
20:34
Anarchos has joined #ocaml
20:43
mechap has joined #ocaml
20:45
Anarchos has quit [Quit: Vision[]: i've been blurred!]
20:45
tom1212 has joined #ocaml
20:45
<
tom1212 >
hi! is it possible to refer to a module type inner module?
20:45
<
tom1212 >
the dot notation doesn't seem to work
20:48
<
discocaml >
<froyo> i love tap
20:48
<
discocaml >
<froyo> wish it was in stdlib
20:48
<
discocaml >
<froyo> such a cute function
20:49
<
tom1212 >
ah managed to do something equivalent with module types and functor signature constraints
20:49
<
discocaml >
<._null._> tom1212: it should
20:50
<
discocaml >
<._null._> Why does it ignore the return value ? I could see it if it expected a function returning unit
20:50
<
tom1212 >
module types are not modules is the error I get
20:50
<
discocaml >
<._null._> That is true
20:51
<
discocaml >
<._null._> What are you trying to do ?
20:51
<
discocaml >
<froyo> NULL: `tap: ('a -> unit) -> 'a -> 'a`
20:52
<
discocaml >
<._null._> I would get behind that more than I would containers' `('a -> 'b) -> 'a -> 'a`
20:52
<
tom1212 >
mb it works
20:53
<
discocaml >
<froyo> oh containers is polymorphic on return? probs more flexible like that tbh.
20:53
<
discocaml >
<froyo> i consider it useful in logging and mutations in a pipeline
20:54
<
discocaml >
<froyo> i dont see a downside to it being polymorphic on return.. maybe it can be a tiny footgun
20:55
<
discocaml >
<froyo> would be nice to not have to worry about side-effectful functions that e.g. return an int
20:55
<
discocaml >
<froyo> like unix stuff
20:55
<
discocaml >
<._null._> If it does, ignore it yourself
20:56
<
discocaml >
<froyo> might as well just write the lambda instead of using the combinator :P
20:59
bartholin has quit [Quit: Leaving]
21:12
szkl has joined #ocaml
21:22
<
tom1212 >
damn you can express relations between modules using functors
21:28
wingsorc__ has joined #ocaml
21:31
tom1212 has quit [Remote host closed the connection]
21:57
reynir[m] has quit [Ping timeout: 245 seconds]
22:10
kaptch has joined #ocaml
22:12
kaptch has quit [Client Quit]
22:32
MuqiuHan[m] has quit [Ping timeout: 245 seconds]
22:32
jmcantrell has quit [Ping timeout: 245 seconds]
22:36
zebrag[m] has quit [Ping timeout: 246 seconds]
22:36
lobo[m] has quit [Ping timeout: 246 seconds]
22:36
mclovin has quit [Ping timeout: 246 seconds]
22:43
mima has joined #ocaml
22:45
Tuplanolla has quit [Quit: Leaving.]
22:55
mechap has quit [Quit: WeeChat 4.0.2]
23:45
waleee has quit [Ping timeout: 260 seconds]