RE: Standard Euphoria Library Project
- Posted by Al Getz <Xaxo at aol.com> Feb 07, 2001
- 420 views
Irv Mullins wrote: > You've somewhat underestimated Euphoria's abilities - all you really > need is: > sequence s > > function remove(integer x, sequence s) > if x < 1 or x > length(s) then return s > end if > return s[1..x-1]&s[x+1..length(s)] > end function > Looks good to me Irv. Mainly, when using any function like this, some sort of range checking is always desirable in order to reduce errors that cause the program to hault. Good luck with it. --Al