I use them reasonably often, and I'm not the only one, I saw they're added here. maybe it makes sense to add to serapeum? Most simple implementation would be as there:
I've added these. For the case of drop-until with a constant, I think the best thing would be to use eqls, which returns a function to test for equality: (drop-until (eqls 7) (range 10)).
I use them reasonably often, and I'm not the only one, I saw they're added here. maybe it makes sense to add to serapeum? Most simple implementation would be as there:
Personally I like to have it take a predicate or a value:
so then ie instead of writing
(drop-until (lambda (n) (equal n 7)) (range 10))
I can just write(drop-until 7 (range 10))