I'm not following 100%. But s/or of specs will comform to the first valid spec 
it encounters. It can be used for duck typing, aka, strutural types.

So given you have many maps, each can be a spec. Then you can create a spec 
which is one of these shapes of maps. Pass any map to the or spec, and it'll 
tell you the first one that validated against the map, returning its name and 
comformed value.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to