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

Home » Public Forums » archive » Getting rid of loops
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: Getting rid of loops [message #19216 is a reply to message #18932] Fri, 03 March 2000 00:00 Go to previous message
Nando Iavarone is currently offline  Nando Iavarone
Messages: 48
Registered: December 1998
Member
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Jacob Noel-Storr wrote:
<blockquote TYPE=CITE>I am trying to create non-loopy IDL code for a project
I am working on.
<p>I have a very long list of integers ('cycle numbers') and I need some
way of
<br>creating an array that consists of just the cycle numbers. For example
if I
<br>had:
<p>> cycles=[2,2,2,2,2,6,6,7,7,7,9,9,9,27,27,27]
<p>then I would want a function which would do this kid of thing:
<p>> print,fn(cycles)
<br>[2,6,7,9,27]</blockquote>
if your repeated values are adjacent, you can use
<br>the "uniq" function.
<br>&nbsp;
<pre>--&nbsp;
Nando Iavarone
Advanced Computer System - SPACE DIVISION
via Lazzaro Belli, 23
00040&nbsp; Frascati - RM
Tel: +39-6-944091 (switchboard)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; 9440968 (direct)
E-mail:&nbsp;
&nbsp;&nbsp;&nbsp; f.iavarone@acsys.it
&nbsp;&nbsp;&nbsp; FrdndVrn@altavista.net</pre>
&nbsp;</html>
[Message index]
 
Read Message
Read Message
Previous Topic: Problems with the help index
Next Topic: Re: draw text parallel to a sloping line

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

Current Time: Sun Oct 12 13:10:37 PDT 2025

Total time taken to generate the page: 2.56049 seconds