Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
1-more
· 1y ago · 0 comments
delightful, ty. How does it handle empty arrays? Throw? Average is zero? Average is infinity?
Comments
[–]
bear8642
1y ago
Average is zero
empty =. 0$0 NB. zero length array +/empty 0 #empty 0 0%0 0
[–]
1-more
OP
1y ago
Further validation for n / 0 = 0 in Elm and Pony and a couple other places! TYSM