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

Home » Public Forums » archive » HELP: Finding Array Element Positions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
HELP: Finding Array Element Positions [message #2450] Wed, 29 June 1994 13:06
Richard is currently offline  Richard
Messages: 6
Registered: June 1994
Junior Member
A PV-WAVE (version 4.20 on Solaris 2.3) Array Question:

I have two string arrays, e.g.

STRARR (5) = ['a','b','c','d','e']
STRARR (2) = ['b','e']

I wish to find the elements which are common, i.e the result would be

INTARR (2) = [1,4]

I am currently performing this in a FOR loop (sacrilege!). With WAVE's
array manipulation I would expect there to be a more elegant solution.

Any ideas would be much appreciated,

Richard Everitt
Internet: Richard@babbage.demon.co.uk
On Air: G4ZFE
[Message index]
 
Read Message
Previous Topic: Price of IDL ?
Next Topic: Map_set & Plots

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

Current Time: Sat Oct 11 20:54:31 PDT 2025

Total time taken to generate the page: 1.36408 seconds