Re: Integer() operation on a sequence?
- Posted by Derek Parnell <ddparnell at bigpond.com> Jun 07, 2004
- 450 views
Michael Raley wrote: > > > Derek Parnell wrote: > > > > Michael Raley wrote: > > > > > > > > > not too suprisingly I cannot do this > > What were you expecting to achieve? > As I stated in the example with integer, > to apply the test to a slice of elements > and return a sequence of True/False values. > i.e (1,0,0,1,1,0) Sorry. I totally misunderstood your question. > > What I'm trying to say is that you could try out writing your own function > > first and if that is not ever going to be fast enough for your needs, > > then you could lobby RDS for a new built-in routine. > > > Yes I could, but I think the functionality has as much broader merit as > current native functions and should at least be mentioned. Hmmm...I'll take your word for that, as I've never needed this or similar functionalty yet. It strikes me as not necessary as what are you going to do with the resultant sequence? My guess is that you will examine each result element and do something appropriate. In which case what is different between ... s = integers({2.3, 0, 5, 3.22, -4}) for i = 1 to length(s) do -- Derek Parnell Melbourne, Australia