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