specter 2025-06-20

using specter how do I get from (range 20) • first just the even numbers • and then only the 3rd to 7th result from the previous step

i can start you with the first part, which'll be (select [ALL even?] (range 20))

(s/select-one [(s/subselect s/ALL (s/pred even?)) (s/srange 2 7)] (range 20))

👍 1

that last one is more concise like this:

(select-any [(filterer even?) (srange 2 7)] (range 20))

👍 1