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

Home » Public Forums » archive » Re: Undocumented array indexing feature?
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: Undocumented array indexing feature? [message #14112 is a reply to message #14104] Thu, 21 January 1999 00:00 Go to previous messageGo to previous message
wbiagiot is currently offline  wbiagiot
Messages: 59
Registered: January 1999
Member
Liam,

Actually, I don't remember seeing this feature documented either, but I use
it quite extensively to access individual indices from procedure/functions that
return an array (such as "WHERE", "SIZE", etc.) Since the data that you've
enclosed in parameters constitutes an array (a subset of your original array
actually), you are further indexing into the new 'subarray'.

An example:

Retrieve the 3rd nonzero element of integer array 'a':

a = [1,0,2,0,3,4,5,6]
result = (WHERE(A))[2] ; array indexing starts from 0

result should equal 3.

If the format of this post is lousy, it is because it is my very
first within the newsgroups. Help this helps.

BTW - message to D. Fanning. Your web site has been a tremendous service
to me and I have learned many concepts from you. Many thanks.

Bill B.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: how do i read compressed tiff files?
Next Topic: Re: Processing Audio

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

Current Time: Wed Oct 08 19:25:55 PDT 2025

Total time taken to generate the page: 0.06794 seconds