Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please define phrase-all like so: #34

Open
johanatan opened this issue Sep 10, 2020 · 1 comment
Open

Please define phrase-all like so: #34

johanatan opened this issue Sep 10, 2020 · 1 comment

Comments

@johanatan
Copy link

johanatan commented Sep 10, 2020

(defn phrase-all [context spec val]
  (some->> (s/explain-data spec val)
           ::s/problems
           (mapv (partial phrase.alpha/phrase context))))
@johanatan
Copy link
Author

It returns a vector of all of the problems which can be further processed by the caller.

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

No branches or pull requests

1 participant