Exercise: Define forall and exists in terms of filter.
As before, since class List cannot be extended in scala, the methods are implemented as pure functions taking a list parameter.
Post a Comment
No comments:
Post a Comment