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