Common function names

The same functionality appears in different programming languages under different names. Here’s an attempt at gathering some interesting distinctions.

Remove/keep elements matching predicate

Plain old filter:

Filter, mutates original:

Filter until predicate fails:

Find single element matching predicate

Map elements

This applies a map to the elements of an array.

Check equality

Equality is a can of worms.

Check inclusion

Number of array elements

Note last edited June 2022.
Backlinks: Programming language design.