Stream 上的内置 zip 函数似乎会在输入流对中最短的位置截断。我怎样才能实现这个功能:
def firstOrLongest[T]( a : Stream[ T ], b : Stream[ T ) : Stream[ T ]
// resulting stream should have the property that:
// while there are still elements of a, return (the corresponding element of) a
// else return (the corresponding element of) b.