View Problem

Process each file in a directory recursively

ExpandDiskEdit
clojure
; (defn process-file [f] "process one file" body...)
(map process-file (file-seq (File. ".")))
ExpandDiskEdit
cpp C++/CLI .NET 2.0
void processFile(String^ filename) { Console::WriteLine("{0}", filename); }

void processDirectory(String^ dirname)
{
for each(String^ filename in IO::Directory::GetFiles(dirname)) processFile(filename);
for each(String^ subdirname in IO::Directory::GetDirectories(dirname)) processDirectory(subdirname);
}

int main()
{
processDirectory("c:\\");
}

Submit a new solution for clojure or cpp
There are 14 other solutions in additional languages (erlang, fantom, fsharp, groovy ...)