Re: My sloppy ABS function ;-)

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

>if, however, you mean something else, then i'm not
>sure what that would be.


Well, consider the soft-coded repeat () function:

function repeat (object x, integer len)
sequence ret
    ret = {}
    for index = 1 to len do
        ret = append (ret, x)
    end for
    return ret
end function

Reproduce does the same, except:

    ret = ret & x

See the difference ?
We have two operators, but only one repeat () function..

Ralf Nieuwenhuijsen
nieuwen at xs4all.nl

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

Search



Quick Links

User menu

Not signed in.

Misc Menu