Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
npryce
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
npryce
13y ago
J has a similar feature: when applied to an empty array, /+ returns 0 and /* returns 1. J doesn't have user-defined types. In a language with user-defined types, you would probably have to declare which operations are monoid