Re: mtn benchmarks

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Fri, 6 Feb 1998, Michael Packard wrote:

> Hey Rob, I wanna be able to count BACKWARDS, like from 10 to 1 by -1.

Have I missed something here?

sequence s
s = {4, 5, 6, 2, 9, 5, 1, 4, 1, 3}

for i = 10 to 1 by -1 do
    ? s[i]
end for

for i = 8 to 0 by -2 do -- experiment with zeroes
    ? s[(i)+1] -- I've stuck brackets round the 'i' because it could
               -- be a more complex expression (e.g. try i/2)
end for

There's even the line:
        for i = length(buffer)-1 to b_line+1 by -1 do
in ed.ex!

--
Carl R White - "I thought it was about time I redesigned my .sig..."
E-mail...: crwhite- at -comp.brad.ac.uk        / Remove the hyphens before
Finger...: crwhite- at -dcsun1.comp.brad.ac.uk \ mailing or fingering...
Url......: http://www.student.comp.brad.ac.uk/~crwhite/cyrek.cgi

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu