@Doru
You’re missing the point: #anyOne *fails* for empty collections.

> On 01 Dec 2015, at 15:31, Esteban A. Maringolo <[email protected]> wrote:
> 
> I don't want to be heretic (or too orthodox), but why not to delegate
> this behavior to other class (an iterator maybe?).
> 
> It's too tempting adding these convenience methods to Collection
> and/or subclasses, but anything that requires an explicit protocol of
> its elements is wrong, IMO.
> 
> something like aCollection arithmetic sum: [...] or.... aCollection
> arithmetic avg.


Interesting thought!

> 
> My two cents for this.
> 
> Regards!
> 
> 
> Esteban A. Maringolo
> 


Reply via email to