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.
내 질문 [여기] (http://stackoverflow.com/q/3015962/334519에 대한 답변을 참조하십시오) 하스켈에서 유사한 문제에 대한 해결책을 찾는다. –