Walk a directory/Recursively: Difference between revisions
Content added Content deleted
(Added Wren) |
(→{{header|Wren}}: Added code to sort the output.) |
||
Line 2,690: | Line 2,690: | ||
=={{header|Wren}}== |
=={{header|Wren}}== |
||
{{libheader|Wren-pattern}} |
{{libheader|Wren-pattern}} |
||
{{libheader|Wren-sort}} |
|||
<lang ecmascript>import "io" for Directory, File |
<lang ecmascript>import "io" for Directory, File |
||
import "/pattern" for Pattern |
import "/pattern" for Pattern |
||
import "/sort" for Sort |
|||
var walk // recursive function |
var walk // recursive function |
||
Line 2,711: | Line 2,713: | ||
var found = [] |
var found = [] |
||
walk.call("/usr/include", p, found) |
walk.call("/usr/include", p, found) |
||
Sort.quick(found) |
|||
for (f in found) System.print(f)</lang> |
for (f in found) System.print(f)</lang> |
||
Line 2,718: | Line 2,721: | ||
valarray_array.h |
valarray_array.h |
||
valarray_before.h |
valarray_before.h |
||
⚫ | |||
⚫ | |||
valgrind.h |
valgrind.h |
||
⚫ | |||
values.h |
values.h |
||
⚫ | |||
⚫ | |||
vfs.h |
vfs.h |
||
⚫ | |||
</pre> |
</pre> |
||