Fork me on GitHub
#datascript
<
2019-06-18
>
Drew Verlee18:06:22

i'm i correct in my understanding that you can't grow a schema in datascript? That is, i have to have a final schema when i create the connection? im going off the docs : No schema migrations

👍 4
✔️ 8
dimovich21:06:39

Is it possible to get the index of an element in tonsky/persistent-sorted-set ?

souenzzo23:06:51

Thats a really nice question @dimovich I can't find a method for this in PersistentTreeSet, but should be possible to get it in O(1)

andy.fingerhut23:06:44

Out of curiosity, wouldn't that require storing some kind of "# of predecessors" or "# of children" counts in tree nodes? I am not familiar with the persistent-sorted-set data structure internals -- perhaps it already has such things.