4 ms·
In FP I think composability and interchangeability of these higher order functions help, in case the supplied filter did not work like you want: You could write
by fulafel 5y ago
In FP I think composability and interchangeability of these higher order functions help, in case the supplied filter did not work like you want: You could write your own filter function variant that guarantees to return the same list if the predicate function returned true for each element.