Created
November 15, 2010 16:54
-
-
Save dgfitch/700590 to your computer and use it in GitHub Desktop.
visitor.fs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let rec visitor dir = | |
seq { yield! | |
( try Directory.GetFiles(dir) | |
with ex -> | |
(* actually do something *) | |
Array.empty ) | |
for subdir in Directory.GetDirectories(dir) do yield! visitor subdir} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment