00:27
batdog|gone is now known as batdog
00:29
mercurylala has joined #ocaml
00:29
Bigbang is now known as Bigb[a]ng
00:45
m3ga has joined #ocaml
00:47
m3ga_ has joined #ocaml
00:47
m3ga_ has quit [Client Quit]
02:14
batdog is now known as batdog|gone
02:39
Raziel has quit ["Yo soy goma. Tú eres cola."]
02:54
pango__ has joined #ocaml
03:15
pango_ has quit [Read error: 110 (Connection timed out)]
03:38
ski has quit [Read error: 110 (Connection timed out)]
03:54
ski has joined #ocaml
04:53
vezenchio has quit ["\\o hutari ga kitto deaeru you na mahou wo kakete - ryoute wo sotto kasanete hora! hohoemu kara - hontou no kimoti kidukanai h"]
05:10
Raziel has joined #ocaml
05:21
bd_ has quit [Read error: 110 (Connection timed out)]
06:20
coumbes has joined #ocaml
06:45
faigo has quit [Remote closed the connection]
07:04
m3ga has quit [Remote closed the connection]
07:11
bzzbzz has quit [Read error: 104 (Connection reset by peer)]
07:21
bzzbzz has joined #ocaml
08:00
ski has quit [Read error: 110 (Connection timed out)]
08:03
vodka-goo has joined #ocaml
08:15
pango__ is now known as pango
08:16
vodka-goo has quit []
09:07
Amorphous has joined #ocaml
09:21
ski has joined #ocaml
09:28
Skal has joined #ocaml
09:36
_fab has joined #ocaml
09:55
Bigb[a]ng is now known as Bigbang
10:04
Revision17 has joined #ocaml
10:18
revision17_ has quit [Read error: 110 (Connection timed out)]
10:38
Raziel has quit ["Yo soy goma. Tú eres cola."]
10:52
descender has quit [Remote closed the connection]
11:01
bd_ has joined #ocaml
11:07
descender has joined #ocaml
12:30
smimou has joined #ocaml
12:43
kryptt has joined #ocaml
12:54
bluestorm has joined #ocaml
14:06
gg has joined #ocaml
15:22
malc_ has joined #ocaml
15:29
ski has quit [Read error: 104 (Connection reset by peer)]
15:31
Bigbang is now known as Bigb[a]ng
15:39
descender has quit [Remote closed the connection]
15:40
vezenchio has joined #ocaml
15:43
descender has joined #ocaml
16:07
kryptt has quit [Read error: 104 (Connection reset by peer)]
16:08
kryptt has joined #ocaml
16:14
kryptt has quit [Read error: 104 (Connection reset by peer)]
16:19
gg has quit ["Leaving"]
16:21
descender has quit [Read error: 110 (Connection timed out)]
17:06
bzzbzz has quit ["leaving"]
17:08
descender has joined #ocaml
17:20
kryptt has joined #ocaml
17:29
kryptt has quit [Read error: 104 (Connection reset by peer)]
17:30
kryptt has joined #ocaml
17:58
mauke has quit [Remote closed the connection]
18:02
mauke has joined #ocaml
18:12
descender has quit [Read error: 104 (Connection reset by peer)]
18:14
Bigb[a]ng is now known as Bigbang
18:16
Bigbang is now known as Bigb[a]ng
18:23
qknight has joined #ocaml
18:23
<
qknight >
good evening
18:23
<
qknight >
how can i check if i've written an anonymous function? so far i got this:
18:24
<
qknight >
let x = (fun a b -> a <> b) true false in
18:24
<
qknight >
if x == true then print_string "result is true\n"
18:24
<
qknight >
else print_string "result is false\n";;
18:24
<
qknight >
is this an anonymous function?
18:24
* qknight
*wonders*
18:24
<
mauke >
the (fun a b -> a <> b) part, yes
18:24
<
mauke >
'if x == true' should be written as 'if x'
18:25
<
smimou >
(and anyway you should use = and not == unless you know what you're doing=
18:25
<
mauke >
take off every `zig`!
18:26
<
qknight >
mauke: what is zig?
18:26
<
qknight >
let x = (fun a b -> a <> b) true false in
18:26
<
qknight >
if x then print_string "result is true\n" else print_string "result is false\n";;
18:27
<
mauke >
a reference to "all your base are belong to us"
18:27
<
mauke >
well, you could just do print_string ("result is " ^ (if (fun a b -> a <> b) true false then "true" else "false") ^ "\n")
18:28
<
mauke >
your way is probably more readable, though
18:28
<
smimou >
and write (<>) instead of (fun a b -> a <> b)
18:29
<
qknight >
what's the ^ for? concartenation?
18:30
<
qknight >
smimou: i don't understand, why should i write (<>)? so i should write: (fun a b -> (<>)) ?
18:31
<
ulfdoz >
qknight: ^ is string concatenation.
18:31
<
smimou >
(<>) is a short notation for (fun a b -> a <> b)
18:31
<
qknight >
ulfdoz: thanks, but smimou told me already ;-)
18:32
<
qknight >
smimou: oh it's really working, interesting though ;-)
18:32
<
qknight >
ok i think i've understood it
18:32
<
mauke >
operators are just functions with weird names
18:34
<
qknight >
mauke: nice definition
18:35
<
mauke >
let add4 = (+) 4;;
18:35
<
qknight >
i think i can't create a recursive function as an anonymous fkt right?
18:37
<
mauke >
you can, kind of
18:37
Bigb[a]ng is now known as Bigbang
18:39
<
mauke >
ah, you can't do (fun f -> f f) directly
18:39
<
mauke >
type func = {fn : func -> func};;
18:40
<
mauke >
(fun {fn = f} -> f {fn = f}) {fn = (fun {fn = f} -> f {fn = f})};;
18:40
<
mauke >
(infinite loop)
18:40
<
mauke >
it's equivalent to (fun f -> f f) (fun f -> f f)
18:45
<
qknight >
oh that's very complicated
18:46
<
mauke >
huhu, you should see unlambda
18:52
_JusSx_ has joined #ocaml
18:52
<
_JusSx_ >
i wouid like to use ocaml_config module in my code
18:52
Bigbang is now known as Bigb[a]ng
18:53
<
_JusSx_ >
where can i find an example of config file used by that module?
18:59
_JusSx_ has quit ["leaving"]
19:05
_exa is now known as exa
19:38
_JusSx_ has joined #ocaml
19:49
poliquin_ has joined #ocaml
19:58
tom_p has quit [Connection timed out]
20:02
faigo has joined #ocaml
20:16
_JusSx_ has quit [Remote closed the connection]
20:16
_JusSx_ has joined #ocaml
20:17
kryptt has left #ocaml []
21:03
malc_ has left #ocaml []
21:14
ski has joined #ocaml
21:29
ski_ has joined #ocaml
21:30
ski has quit [Nick collision from services.]
21:30
ski_ is now known as ski
21:39
CLxyz has quit [Connection timed out]
23:12
m3ga has joined #ocaml
23:22
CLxyz has joined #ocaml
23:40
batdog|gone is now known as batdog
23:46
_JusSx_ has quit ["leaving"]
23:51
<
Smerdyakov >
What would y'all use to translate a bunch of structured data into a number of outputs in HTML, LaTeX, and similar? I know there is a whole world of XML stuff, but I'm wondering if there's something more in the functional world.