Re: product() unexpected result
- Posted by petelomax Apr 29, 2021
- 952 views
What? In phix, product({}) always has and always will return 1.
What is likely/going to change is that the previously illegal product({},0) returns 0. Tom, please correct your post.
Anyway, surely product({3,2,1}) returns 6 tons of concrete should be compared against product({0,0,0}) returning 0,
assuming {x,y,z} or {length,width,height|depth} args, but I'll use it anyway (thanks).
I've also just thought of sum({},1) to award a bonus point for "no faults".