2 ms·
And then php: array_map(fn($match) => print($match), array_filter($words, fn($_) => in_array($_, WORDS))); or less verbosely: array_map(fn($match) =>
by withinboredom 4y ago
And then php:
array_map(fn($match) => print($match), array_filter($words, fn($_) => in_array($_, WORDS)));
or less verbosely:
array_map(fn($match) => print($match), array_intersect($words, WORDS));