Skip to content

Instantly share code, notes, and snippets.

@AlexDaniel
Created April 7, 2017 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlexDaniel/6c55ec482e024c2891e15c46930a31d8 to your computer and use it in GitHub Desktop.
Save AlexDaniel/6c55ec482e024c2891e15c46930a31d8 to your computer and use it in GitHub Desktop.
my $sieve = 0..0x10FFFF;
for @strings -> $criteria { $sieve .= grep({uniname($_).fc.contains($criteria)}) };
for @regexes -> $criteria { $sieve .= grep({uniname($_).fc ~~ $criteria}) };
$sieve.map({output $_});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment