Re: creating a finite sequence of uncertain length

2011-10-26 Thread Blake C Hurt
Perfect! Thanks! On Oct 25, 7:10 pm, Alan Malloy wrote: > (take-while (complement nil?) (repeatedly myfunc)) > > On Oct 25, 4:07 pm, rugby_road wrote: > > > > > > > > > I have a function without arguments which returns a big,complex object > > repeatedly until it returns nil.  That is to say tha

Re: creating a finite sequence of uncertain length

2011-10-25 Thread Alan Malloy
(take-while (complement nil?) (repeatedly myfunc)) On Oct 25, 4:07 pm, rugby_road wrote: > I have a function without arguments which returns a big,complex object > repeatedly until it returns nil.  That is to say that the function > will produce a sequence of objects, but I don't know how many.  

creating a finite sequence of uncertain length

2011-10-25 Thread rugby_road
I have a function without arguments which returns a big,complex object repeatedly until it returns nil. That is to say that the function will produce a sequence of objects, but I don't know how many. I want to call the generator as a lazy sequence but how do I make such a thing? Currently I am d