words.filter { WORDS.contains($0) }.forEach { w in ... }
array_map(fn($match) => print($match), array_filter($words, fn($_) => in_array($_, WORDS)));
array_map(fn($match) => print($match), array_intersect($words, WORDS));