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
Is it possible to get the index of an element in tonsky/persistent-sorted-set
?
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)
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.