Try F# in your browser
tryfs.net
Try F# in your browser
1–10 of 13 posts
Re: Try F# in your browser
#2Re: Try F# in your browser
#3Re: Try F# in your browser
#4Alas for me (in IE8) this isn't working. It doesn't seem to actually "execute".
Re: Try F# in your browser
#5Alas for me (in IE8) this isn't working. It doesn't seem to actually "execute".
Re: Try F# in your browser
#6 let root = "C:\\";
let getdirs dir =
try
System.IO.Directory.GetDirectories(dir)
with
| e -> Array.empty
let rec list_files dir = seq {
yield! System.IO.Directory.GetFiles(dir);
for subdir in (getdirs dir) do
match subdir with
| x when x.StartsWith("C:\\$") -> ()
| subdir -> yield! list_files subdir
}
list_files root
|> Seq.iter (printfn "%s")
printf "done"
All types inferred.Re: Try F# in your browser
#7Alas for me (in IE8) this isn't working. It doesn't seem to actually "execute".
Yeah, me either--I keep getting either (seemingly arbitrary) double prompts or "ajax errors" in Safari 5.0.3...
Re: Try F# in your browser
#8Earlier quoted context omitted.
Yeah, me either--I keep getting either (seemingly arbitrary) double prompts or "ajax errors" in Safari 5.0.3...
Not working in Chrome. I pressed send and it just printed back everything in the editor without executing.
Re: Try F# in your browser
#9In german though.
Re: Try F# in your browser
#10Ever wonder what the 200,000th Fibonacci number is? Last night with a recursive F# function I got it in FSI in just over 6 seconds. It would be cool if you could get this page to work well enough to do that.