In reply to Tudor Timi:
My coworker also interpreted
y=numbers.sum with (item>5);
as what actually happens with:
y=numbers.sum with (item>5?item:0);
The LRM does spell it out, of course. I think part of my problem was I was just done executing a bunch of find() operators, which returns a queue populated with items, so I presumed incorrectly that sum worked the same way.
“find() returns all the elements satisfying the given expression.”
“(sum) returns the sum of the values yielded by evaluating the expression for each array element”
Whatever; it is what it is.