Fork me on GitHub
#datascript
<
2020-04-23
>
DFST01:04:24

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.

Aron07:04:25

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