Hacker News new | ask | show | jobs
by withinboredom 1392 days 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));