Found Unit required Stream

前端 未结 0 710
孤城傲影
孤城傲影 2021-01-31 09:44

I want to write a general filter function in scala that will return a stream with the elements that meet the given condition.

def filter[A](s: Stream[A])(p: A =&g         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题