Hacker News new | ask | show | jobs
by rippercushions 1345 days ago
> compostable APL-style operators

APL-style operators have been sent to the compost heap of history for a reason.

1 comments

Fold

Scan

Map

Head/tail

Index (with an array)

The integers up to n

Concatenate

Flatten

Most of the operators are already familiar but they tend to work well on multidimensional arrays and with each other due to broadcast semantics (and some axis selection features). In other languages you may see the magic broadcasting for some operations like addition but many of the functions only work on vectors.