datascript

Immutable database and Datalog query engine for Clojure, ClojureScript and JS
DFST 2020-04-23T01:31:24.030200Z

does anyone know why d/filter applies the predicate function to the unfiltered version of a database? I was banging my head against my keyboard trying to figure out why my filter wasn't returning the results I was expecting until I figured out that the filter was not being applied to the filtered database that I was passing in as an argument, but rather to the underlying original database. It seems like now I'm going to have to cobble together a query on the filtered database and then filter out entities by eid. I'm not a clojure (or coding) expert by any means, but this seems to run somewhat counter to a lot of the patterns I have run into so far in this language where a collection will change through several applications of successive functions.

Aron 2020-04-23T07:57:25.031100Z

@d.f.stearns would be easier to say anything with some example 🙂