findfn icon indicating copy to clipboard operation
findfn copied to clipboard

Adding find-fn-for-pred

Open arosequist opened this issue 13 years ago • 0 comments

There are times when I want to find a fn that returns a value that matches a predicate other than equality ("find a fn that returns an empty seq (of any type)" or "find a fn that returns something that implements this protocol").

This adds a function called find-fn-for-pred (any suggestions on a name?) that takes a predicate rather than a value for the out, and re-implements find-fn using this new function.

arosequist avatar Dec 02 '12 04:12 arosequist