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

idea: unify with predicate #59

Open
dustingetz opened this issue Aug 25, 2022 · 2 comments
Open

idea: unify with predicate #59

dustingetz opened this issue Aug 25, 2022 · 2 comments

Comments

@dustingetz
Copy link
Member

dustingetz commented Aug 25, 2022

(tests
  (def h (clojure.java.io/file "src/"))
  (type h) := java.io.File
  (datafy h)
  := #:user.datafy-fs{:name "src",
                      :lastModifiedTime _,
                      :size _,
                      :isDirectory ::folder,
                      :children ~seq?})                ; here

as well as {:children [~(instance? java.io.File %) & _]}

@dustingetz
Copy link
Member Author

(tests
  (->> (m/? (query! '[:find (pull ?tx [:db/id :db/txInstant])
                     :where [?tx :db/txInstant]] db))
       (take 5))
  := [[#:db{:id _, & ?kvs}] & ?xs])

@dustingetz
Copy link
Member Author

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