Re: Questions...

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

>I was wondering if there is a procedure/function
>that converts EG : "12345" to 12345

    Its called value (), you can find it in get.e

>I created this :
>
>[BEGIN]
>
>function kwadraat(integer dinges,integer totde,integer extra)

    Nederlands ? blink

>And also, if there's a proc/func that is like match(),
>but gives ALL the locations back.

That would be handy. I personally dislike the whole system of find () and
    match ().
I just wish we were able to do this tiny little trick that the language
    'ICON' lets us do.
That is: be able to 'store' the position in a certain routine. That the next
    time it is called, it returns at the position
it has left. It would only time one new key word.

    'leave'

Off course the syntax to call it 'again' and the syntax to call it for the
    first time should be different. In ICON this is
done with the keyword 'each' but im not that certain is such recursion tricks
are good for Euphoria. It would allow you to
write, if you want any recursive algorithm in one statement. But the idea to be
able to have a static position in a routine
alone, should at least provide us with the technique to easily write recursive
algorithms with an undefined length of
information, of which we need an undefined amount of.

Oh, well, we can do this with Euphoria already, if we want. Just split the
    function up appropiately into different routines,
so maybe Im just being silly. (That would be a nice interface, a declare_find
(item, sequence) procedure and a next () function)

Ralf

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

Search



Quick Links

User menu

Not signed in.

Misc Menu