|
Re: extract elements from a collection [message #715381 is a reply to message #715339] |
Sat, 13 August 2011 16:41 |
Ed Willink Messages: 7669 Registered: July 2009 |
Senior Member |
|
|
Hi
Sequence{2,3,6}->collect(i | aCollection->at(i))
Regards
Ed Willink
On 13/08/2011 13:57, AmenieV wrote:
> Hi,
>
> How can I extract such elements from a collection T,
> for example,for recovering the second element we do collection -> at (2)
> but I want to recover the second,third and sixth element for example,
> what should I do?
>
> Thankx,
> Regards
> AmenieVal
|
|
|
Re: extract elements from a collection [message #716044 is a reply to message #715381] |
Tue, 16 August 2011 09:38 |
AmenieV Messages: 13 Registered: June 2011 |
Junior Member |
|
|
Thankx for your reply Ed !
but I want to do loop on elements of the sequence,, such as I want to recover elem whis index=i and i = i +4
Do you understand me?
and how can I compare elements of two sequences?
for instance, sequence{1,3,4} must be > sequence{4,0,1}
Thanks a lot Ed,
Regards,
AmenieVal
[Updated on: Tue, 16 August 2011 10:03] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03501 seconds