-
-
Save smls/1637615d59f87c66e3e724c9723d864b 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 = none <. ..>) { | |
gather given $dir.IO { | |
my @files = .dir; | |
.take when $test for @files; | |
.&?BLOCK if .d for @files; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment