[nem-en] Re: [svn] r6599: nemerle/trunk:
lib/narray.nncc/completion/CodeCompletionEngine.n
ncc/parsing/AST.n ncc/passe...
Michal Moskal
michal.moskal at gmail.com
Mon Sep 4 21:33:07 CEST 2006
On 9/4/06, vc <vc at rsdn.ru> wrote:
> > On 9/2/06, VladD2 <svnadmin at nemerle.org> wrote:
> > > + public ToArray[From, To] (this sourse : SCG.ICollection[From],
> > > + f : From -> To) : array [To]
> > > + public ToArray[From, To] (this sourse : SCG.IEnumerable [From],
> > > + f : From -> To) : array [To]
> >
> > I think this methods should have "Map" in the name. ToArrayMapped
> > maybe? I would go with just Map() but then we might also want to have
> > similar methods returning lists. On the other hand, for lists there
> > are list comprehensions, but sometimes it is clearer to use functions.
>
> I change it to MapToArray.
Then maybe FilterToArray too?
I know I'm being picky, but these names are going to be fixed once and
for all so we should think twice.
--
Michał
More information about the devel-en
mailing list