-
-
Save smls/e4adead89c3aa8dcefd945725d2cd803 to your computer and use it in GitHub Desktop.
This file contains 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
sub find-files ($dir, Mu :$test) { | |
gather for dir $dir -> $path { | |
if $path.basename ~~ $test { take $path } | |
if $path.d { .take for find-files $path, :$test }; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment