You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, it would have the same interface as the get-in of Clojure Core, but the behaviour of the existing get in this library where the coll of ks represents ancestry.
This would rely on a matcher function for ancestry, e.g. maybe called ancestors + a generic matcher for the node itself.
It would also be great to have a similar pair for selecting nodes based on descendants, e.g. a descendants matcher + a generic matcher. However, I'm not sure what to call it since there is no real equivalent in Clojure Core.
The text was updated successfully, but these errors were encountered:
Another way around it would be to simply extend the functionality of the existing hiccup matcher to match layers of children as descendants. That way it would be obvious that the outer element is the one selected.
For selecting unknown elements, we will need a universal matcher, maybe change the default of no-argument any to (constantly true) rather than (constantly false)?
Basically, it would have the same interface as the
get-in
of Clojure Core, but the behaviour of the existingget
in this library where the coll ofks
represents ancestry.This would rely on a matcher function for ancestry, e.g. maybe called
ancestors
+ a generic matcher for the node itself.It would also be great to have a similar pair for selecting nodes based on descendants, e.g. a
descendants
matcher + a generic matcher. However, I'm not sure what to call it since there is no real equivalent in Clojure Core.The text was updated successfully, but these errors were encountered: