Common function names

Up: Programming language design

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 August 2024.
Incoming links: Programming language design.