--- Comment #6 from 2010-10-19 13:32:04 PDT ---
(In reply to comment #4)

> array creates an array from anything. We should have a way to say "duplicate
> and preserve type".

After thinking about your words for some time I have understood your point.

So after your change, for the semantics I am looking for, I'll need to write a
bit longer code:

What if the input collection is not sortable? Like:

In that case I presume the compilation will fail, and I'll have to use
something like:

Or even:

(Where toList() is similar to array() but produces some kind of list out of an

A problem in using this:
is that array() is supposed to create an array duplicate of the collection, and
then sorted() is supposed to create a second useless copy of it.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to