@lumpy that's because each time you call complement
you get a new anonymous function back. If you (def not-after? (complement after?))
and return after?
or not-after?
instead, it should work.
Thanks that makes sense. So basically you shouldn’t return anonymous functions if you want to test them.