-
-
Save zoffixznet/c534fbd74b846d51d6565c3f2f0d779c 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
my $matcher = { !.DEFINITE and try .can('say') }; | |
.say for sort map *.^name, eager grep $matcher, | |
gather for CORE::.keys.grep(* ne 'IterationEnd') { | |
try {.^methods} and take $_ given CORE::{$_}; | |
sub dig ($stash, $level = 0) { | |
for $stash.keys { | |
try {.^methods} and take $_ given $stash{$_}; | |
$level < 1 and .keys and .&dig($level+1) | |
given $stash{$_}.WHO; | |
} | |
}(CORE::{$_}.WHO) if try CORE::{$_}.WHO.keys; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment