__DL__ changed the topic of #ocaml to: OCaml 3.09.0 available! Archive of Caml Weekly News: http://sardes.inrialpes.fr/~aschmitt/cwn/ | A free book: http://cristal.inria.fr/~remy/cours/appsem/ | Mailing List: http://caml.inria.fr/bin/wilma/caml-list/ | Cookbook: http://pleac.sourceforge.net/
_fab has quit []
batdog|gone is now known as batdog
mercurylala has joined #ocaml
Bigbang is now known as Bigb[a]ng
m3ga has joined #ocaml
m3ga_ has joined #ocaml
m3ga_ has quit [Client Quit]
batdog is now known as batdog|gone
Raziel has quit ["Yo soy goma. Tú eres cola."]
pango__ has joined #ocaml
pango_ has quit [Read error: 110 (Connection timed out)]
ski has quit [Read error: 110 (Connection timed out)]
ski has joined #ocaml
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"]
Raziel has joined #ocaml
bd_ has quit [Read error: 110 (Connection timed out)]
coumbes has joined #ocaml
faigo has quit [Remote closed the connection]
m3ga has quit [Remote closed the connection]
bzzbzz has quit [Read error: 104 (Connection reset by peer)]
bzzbzz has joined #ocaml
ski has quit [Read error: 110 (Connection timed out)]
vodka-goo has joined #ocaml
pango__ is now known as pango
vodka-goo has quit []
Amorphous has joined #ocaml
coumbes has quit ["[TalkSoup] Get it today: http://talksoup.aeruder.net"]
ski has joined #ocaml
Skal has joined #ocaml
_fab has joined #ocaml
Bigb[a]ng is now known as Bigbang
Revision17 has joined #ocaml
revision17_ has quit [Read error: 110 (Connection timed out)]
Raziel has quit ["Yo soy goma. Tú eres cola."]
descender has quit [Remote closed the connection]
bd_ has joined #ocaml
descender has joined #ocaml
smimou has joined #ocaml
kryptt has joined #ocaml
bluestorm has joined #ocaml
gg has joined #ocaml
<gg> hi
<dylan> 'ello
malc_ has joined #ocaml
ski has quit [Read error: 104 (Connection reset by peer)]
Bigbang is now known as Bigb[a]ng
descender has quit [Remote closed the connection]
vezenchio has joined #ocaml
descender has joined #ocaml
kryptt has quit [Read error: 104 (Connection reset by peer)]
kryptt has joined #ocaml
kryptt has quit [Read error: 104 (Connection reset by peer)]
gg has quit ["Leaving"]
descender has quit [Read error: 110 (Connection timed out)]
bzzbzz has quit ["leaving"]
descender has joined #ocaml
kryptt has joined #ocaml
kryptt has quit [Read error: 104 (Connection reset by peer)]
kryptt has joined #ocaml
mauke has quit [Remote closed the connection]
mauke has joined #ocaml
descender has quit [Read error: 104 (Connection reset by peer)]
Bigb[a]ng is now known as Bigbang
Bigbang is now known as Bigb[a]ng
qknight has joined #ocaml
<qknight> good evening
<qknight> how can i check if i've written an anonymous function? so far i got this:
<qknight> let x = (fun a b -> a <> b) true false in
<qknight> if x == true then print_string "result is true\n"
<qknight> else print_string "result is false\n";;
<qknight> is this an anonymous function?
* qknight *wonders*
<mauke> the (fun a b -> a <> b) part, yes
<mauke> 'if x == true' should be written as 'if x'
<smimou> (and anyway you should use = and not == unless you know what you're doing=
<mauke> take off every `zig`!
<qknight> mauke: what is zig?
<qknight> let x = (fun a b -> a <> b) true false in
<qknight> if x then print_string "result is true\n" else print_string "result is false\n";;
<qknight> better?
<mauke> a reference to "all your base are belong to us"
<qknight> *lol*
<mauke> well, you could just do print_string ("result is " ^ (if (fun a b -> a <> b) true false then "true" else "false") ^ "\n")
<mauke> your way is probably more readable, though
<smimou> and write (<>) instead of (fun a b -> a <> b)
<qknight> what's the ^ for? concartenation?
<smimou> yes
<qknight> smimou: i don't understand, why should i write (<>)? so i should write: (fun a b -> (<>)) ?
<smimou> no
<ulfdoz> qknight: ^ is string concatenation.
<smimou> (<>) is a short notation for (fun a b -> a <> b)
<qknight> ulfdoz: thanks, but smimou told me already ;-)
<qknight> smimou: oh it's really working, interesting though ;-)
<qknight> ok i think i've understood it
<mauke> operators are just functions with weird names
<qknight> mauke: nice definition
<mauke> let add4 = (+) 4;;
<qknight> i think i can't create a recursive function as an anonymous fkt right?
<mauke> you can, kind of
Bigb[a]ng is now known as Bigbang
<mauke> ah, you can't do (fun f -> f f) directly
<mauke> type func = {fn : func -> func};;
<mauke> (fun {fn = f} -> f {fn = f}) {fn = (fun {fn = f} -> f {fn = f})};;
<mauke> (infinite loop)
<mauke> it's equivalent to (fun f -> f f) (fun f -> f f)
<qknight> oh that's very complicated
<mauke> huhu, you should see unlambda
_JusSx_ has joined #ocaml
<_JusSx_> i wouid like to use ocaml_config module in my code
Bigbang is now known as Bigb[a]ng
<_JusSx_> where can i find an example of config file used by that module?
_JusSx_ has quit ["leaving"]
_exa is now known as exa
_JusSx_ has joined #ocaml
poliquin_ has joined #ocaml
tom_p has quit [Connection timed out]
faigo has joined #ocaml
_JusSx_ has quit [Remote closed the connection]
_JusSx_ has joined #ocaml
kryptt has left #ocaml []
malc_ has left #ocaml []
ski has joined #ocaml
ski_ has joined #ocaml
ski has quit [Nick collision from services.]
ski_ is now known as ski
CLxyz has quit [Connection timed out]
m3ga has joined #ocaml
CLxyz has joined #ocaml
_fab has quit []
batdog|gone is now known as batdog
_JusSx_ has quit ["leaving"]
<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.