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

Home » Public Forums » archive » generate sequential list
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
generate sequential list [message #93246] Thu, 19 May 2016 08:25 Go to next message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
Is there an elegant way to generate an incremental list, i.e. the list() equivalent of indgen()? Or to convert an array to a list?

cheers,
Greg
Re: generate sequential list [message #93247 is a reply to message #93246] Thu, 19 May 2016 08:31 Go to previous messageGo to next message
Lajos Foldy is currently offline  Lajos Foldy
Messages: 176
Registered: December 2011
Senior Member
On Thursday, May 19, 2016 at 5:25:31 PM UTC+2, greg...@googlemail.com wrote:
> Is there an elegant way to generate an incremental list, i.e. the list() equivalent of indgen()? Or to convert an array to a list?
>
> cheers,
> Greg

list(indgen(5), /extract)

regards,
Lajos
Re: generate sequential list [message #93252 is a reply to message #93247] Fri, 20 May 2016 07:55 Go to previous message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
> list(indgen(5), /extract)
>
> regards,
> Lajos

that's the thing! thanks very much.

Greg
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Read ASCII line till semicolon
Next Topic: Averaging of my observations

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

Current Time: Wed Oct 08 11:36:38 PDT 2025

Total time taken to generate the page: 0.00510 seconds