[nem-en] extra list operations

Kamil Skalski kamil.skalski at gmail.com
Sat Dec 30 10:35:04 CET 2006


>
> Makes sense to me. LastIndexOf could be also useful.
>
> I just wonder, maybe we should also have a version of IndexOf taking
> predicate and not an object? I'm not sure if it would be better to
> overload IndexOf, or introduce another name.
>

I don't think IndexOf is really useful - we already have:
Find, Exists, Contains, ContainsRef

which have similar function. And having index of element on linked
list doesn't make much sense to me.

As for Iter and Fold with element / tail it is nice, though maybe
somebody have a better name for it?


-- 
Kamil Skalski
http://nazgul.omega.pl



More information about the devel-en mailing list