comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: select first n elements of array without loop
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: select first n elements of array without loop [message #72017 is a reply to message #72016] Wed, 04 August 2010 13:11 Go to previous messageGo to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Aug 4, 5:06 pm, David Fanning <n...@dfanning.com> wrote:
> Fermiona Fermiona writes:
>> If I have an array and I want to select say, the first n elements
>> thereof, can I do so without using a loop.
>
>> For example if I want to select all the elements, I'd use an *
>
> subarrar = array[0:n]

Though that selects the first n+1 elements.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: How to increase array size by 1
Next Topic: Setting UNIX 'group' from IDL?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 13:40:45 PDT 2025

Total time taken to generate the page: 0.96100 seconds