- Subject: Re: list to array conversion?
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Wed, 12 Apr 2006 15:00:27 -0400
Marko Mahnic <marko.mahnic@xxxxxxxx> wrote:
>Maybe there could be a where() version for lists:
>
> where([DataType_Type type,] condition)
>
>? It would only perform a test on a certain type of elements.
I eventually plan to extend the comparison operators to lists. Then
you would be able to do something like:
i = where (list > 3);
For this to be useful, list[i] should return a "sublist". Of course
this will not work if a list consists of datatypes where the
comparison makes no sense. For this reason, my inclination would be
to throw an exception if a comparison were made on a list containing
such elements.
--John
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2006 date index]
[2006 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]