gl has quit [Read error: 110 (Connection timed out)]
gl has joined #ocaml
skylan has quit ["on vacation in AZ, USA for four weeks. ^_^"]
gl has quit [Read error: 113 (No route to host)]
gl has joined #ocaml
<smkl>
exarkun: you need to use "let rec y f x = f (y f) x" for those
* exarkun
tries to wrap his head around that.
<smkl>
there is no point in making recursive anon. functions, though
<exarkun>
convenience
<exarkun>
or laziness
<exarkun>
whichever you prefer :)
<smkl>
big anon. functions are often confusing. i always use local function definitions instead
<exarkun>
That's what I ended up doing, but I was just looking for a quick way to do something like "function x -> if x == 0 then [] else <this function>(x - 1) @ [x]"
<smkl>
y (fun this x -> if x = 0 then [] else this (x-1) @ [x])
mr_bubbs has quit [vinge.openprojects.net irc.openprojects.net]
exarkun has quit [vinge.openprojects.net irc.openprojects.net]
scipient has quit [vinge.openprojects.net irc.openprojects.net]
Belgarion has quit [vinge.openprojects.net irc.openprojects.net]
tmcm has quit [vinge.openprojects.net irc.openprojects.net]
exarkun has joined #ocaml
tmcm has joined #ocaml
Belgarion has joined #ocaml
mr_bubbs has joined #ocaml
scipient has joined #ocaml
gl has quit ["La foule est une somme d'erreur qu'il faut corriger."]
<mr_bubbs>
taureg sure is borking up the indents here
<mr_bubbs>
and it doesn't seem to be an awfully complex indent either
<mr_bubbs>
smkl: how long have you been doing caml?
exarkun is now known as basicpascalccppj
basicpascalccppj is now known as exarkun
<smkl>
mr_bubbs: about 4 years, since version 1.06 or something
ott has joined #ocaml
ott has left #ocaml []
<mr_bubbs>
smkl: ahh, cool
<mr_bubbs>
you primarily (only?) use ocaml?
<exarkun>
val knownDialects = [ "none" ] defines a list member variable, right?
<timmy>
for a class it should
<exarkun>
When I try to pass it as the second parameter to List.map, I get an error indicating that it is an array
<exarkun>
"This expression has type 'a list but is here used with type 'b array
<exarkun>
"
<exarkun>
List.find rather, not List.map
gl has joined #ocaml
gl has quit [Client Quit]
<timmy>
can you show the whole statement?
<exarkun>
bleag, my display just thrashed itself, hang on