chrispsn
Joined 9 years ago
Karma
1,055
Submissions
159
Member since
Jul 21
Sydney, Australia.
View on Hacker NewsJoined 9 years ago
Notice that aside from reverse (monadic |), all verb symbols in the above code are in most other languages (max as |, min as &, plus as +, minus as -). Adverbs (such as / for reduce and \ for scan-reduce) make the symbols we already have more generally applicable.
I think a language could go a long way with a small set of basic arithmetic symbols alongside a rich set of adverb symbols.
https://gist.github.com/chrispsn/da00835bb122c42f429a084df83...
The kparc.com links are down though.
https://ngn.codeberg.page/k/#eJxdjssKwjAQRffzFddVFyLFoiiFQD8...
Group tells you the places each element occurs in a list. It generates lists of indices.