USING: assocs io.files kernel namespaces sequences ; IN: io.paths : find-file ( seq str -- path/f ) [ [ path+ exists? ] curry find nip ] keep over [ path+ ] [ drop ] if ; : walk-dir ( path -- seq ) [ (walk-dir) ] { } make ;