I'm trying to create a stream version of map that takes a variable number of streams as argument. The problem I have is that I want it to handle streams of various size, and that it will terminate when one of them is empty. If i was dealing with lists instead of streams I would just do like this:
if (member? '() args)
'()
But since this materializes the whole stream each time, I guess it defeats the purpose? I can't seem to think of any other way to check if one of the streams are empty than to to it like this.