Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
my @a = <1 B 3 D 4>;
my @b;
my $hit;
for @a -> $e {
@b.push: ($e ~~ m/(<alpha>) || { next } /).Str;
}
say @b;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment