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

Home » Public Forums » archive » Re: list manipulation
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: list manipulation [message #78800 is a reply to message #78799] Sun, 18 December 2011 10:29 Go to previous messageGo to previous message
greg.addr is currently offline  greg.addr
Messages: 160
Registered: May 2007
Senior Member
I tried like this, which works:

IDL> b=list(a[0],a[1],a[2],/extract)
IDL> print,b
1
2
3
2
3
4
5

..but in real life, 'a' contains hundreds of short arrays, so that line's impractical. The following, which I could easily make - and would expect to be equivalent - doesn't work:

IDL> b=list(a[[0,1,2]],/extract)
IDL> print,b
1 2 3
2
3 4 5

Am I missing something obvious?

cheers,
Greg
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: list manipulation
Next Topic: Extending or resizing array in IDL

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

Current Time: Wed Oct 08 17:25:27 PDT 2025

Total time taken to generate the page: 0.00446 seconds