[nem-en] Re: [svn] r6599: nemerle/trunk: lib/narray.n ncc/completion/CodeCompletionEngine.n ncc/parsing/AST.n ncc/passe...

Michal Moskal michal.moskal at gmail.com
Mon Sep 4 09:31:57 CEST 2006


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.

-- 
   Michał


More information about the devel-en mailing list