Skip to content

Conversation

@arosequist
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant