Applying Functions to Lists
Many computations can be conveniently specified in terms of applying functions in parallel to many elements in a list.
Many mathematical functions are automatically taken to be “listable”, so that they are always applied to every element in a list.
- Apply — apply a function to a list, at specified levels
- Map — map a function over a list, at specified levels
- MapAt — map a function at particular positions
- MapIndexed — map a function, including index information
- MapThread — map a function across corresponding elements in multiple lists
- Scan — scan over every element of a list, applying a function
- Thread — "thread" a function across lists that appear in its arguments