Re: Questions...
- Posted by Patrick Quist <quistnet at HOTMAIL.COM> Feb 17, 1999
- 418 views
>From: Ralf Nieuwenhuijsen <nieuwen at XS4ALL.NL> >Subject: Re: Questions... >To: EUPHORIA at LISTSERV.MUOHIO.EDU > >>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 ? > No Dutch, (HAHA!!) >>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 So... You don't know anything about such procedures? Bye, PQ QC ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com