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

Home » Public Forums » archive » Re: pred & succ ?
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: pred & succ ? [message #22450] Mon, 13 November 2000 00:00 Go to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Andrew wrote:
>
> In article <3A0FA91A.7BEE1D07@dkrz.de>,
> Martin Schultz <martin.schultz@dkrz.de> wrote:
>>
>> FUNCTION pred, x
>> RETURN, x-1
>> END
>> FUNCTION succ, x
>> RETURN, x+1
>> END
>>
>
> Thanks, Martin. I take that as a "no", though.
>
> I was thinking of a general, built-in (thus fast),
> function that returns the successor or predecessor
> of any ordinal variable.
>
> I knew I could write x-1, etc.. :-)
>

Well, the point is that x-1 already is quite fast because IDL is array
oriented. I'm not sure whether you could gain anything significant by
having this as a builtin function.

Cheers,
Martin



--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: trouble with color table on NT
Next Topic: tick label distance from axis in SURFACE

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

Current Time: Sun Oct 12 02:14:25 PDT 2025

Total time taken to generate the page: 1.68221 seconds