• (database-counts db)
Returns a map with the count of elements in each relation.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/datalog/database.clj:144 top

(defn database-counts
  "Returns a map with the count of elements in each relation."
  [db]
  (map-values #(-> % :data count) db))
Vars in clojure.contrib.datalog.database/database-counts: -> count defn
Used in 0 other vars

Comments top

No comments for database-counts. Log in to add a comment.