Le lundi 26 octobre 2015 12:52:04 UTC+1, DNF a écrit :
>
> I must admit I don't understand very well what snippet is supposed to do. 
> But, for example, it doesn't work for :sum or :maximum or anything like 
> that.
>
>
This comes from the fact that sum and maximum don't work on empty arrays. 
Which are of course perfectly valid iterables. The code I gave tests all 
functions on base on a object with a type for which start/next/done is 
implemented. Collecting the values of that object just gives an empty array 
of type Any. 

Reply via email to