Re: QBasic --> Euphoria (again)

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

>More euphoric would be, allowing both atoms and sequences:
>
>function abs (object x)
>    return x < 0 * -2 + x
>end function

That should be:

function abs(object x)
    return (x < 0) * x * -2 + x
end function
----------------------------
Einar

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

Search



Quick Links

User menu

Not signed in.

Misc Menu