It's a weird one because I read the API as one might in English:
Return ALL items THAT match the predicate, as this is usually how predicate filters are implemented in my experience.
However I'd guess from the results that predicates are implemented:
Return ALL items, THEN filter by predicate, which in the case of FIRST & LAST will return empty.
Thoughts on what is preferable? If THEN is preferable (or here to stay) then how might one do the THAT version of the query given first and last? Is the right way to perform the ALL filter and then seek the first and last item?
P.S If any of my clojure can be improved please let me know as I'm still learning 😄
Hi,
If you use the navigator ALL with a predicate then you get you might get the following
However if you use FIRST and LAST with the same predicate Specter returns no results.
It's a weird one because I read the API as one might in English:
Return ALL items THAT match the predicate
, as this is usually how predicate filters are implemented in my experience.However I'd guess from the results that predicates are implemented:
Return ALL items, THEN filter by predicate
, which in the case of FIRST & LAST will return empty.Thoughts on what is preferable? If THEN is preferable (or here to stay) then how might one do the THAT version of the query given first and last? Is the right way to perform the ALL filter and then seek the first and last item?
P.S If any of my clojure can be improved please let me know as I'm still learning 😄