Thanks, but there is a typo apptets instead of accepts, and I think you should explain the one-off approach too, where you don't need to pass any Set.
Passing new Set is not super handy if you never reuse that Set, so that in such case not passing a second argument to filter(...) provides a better UX.
Done :)
Thanks, but there is a typo
apptets
instead ofaccepts
, and I think you should explain the one-off approach too, where you don't need to pass any Set.Passing
new Set
is not super handy if you never reuse thatSet
, so that in such case not passing a second argument tofilter(...)
provides a better UX.Thanks again, Andrea!