(<= (column ?n ?x)
(true (cell 1 ?n ?x))
(true (cell 2 ?n ?x))
(true (cell 3 ?n ?x)))
But in Datascript I have to do much more rigmarole around shuffling the data around: [(column ?n ?x)
[?current "ident" "current"]
[?coord0 "type" "coord"]
[?coord1 "type" "coord"]
[?coord2 "type" "coord"]
[?coord0 "m" 0]
[?coord1 "m" 1]
[?coord2 "m" 2]
[?coord0 "n" ?n]
[?coord1 "n" ?n]
[?coord2 "n" ?n]
[?coord0 "name" ?key0] [?current ?key0 ?x]
[?coord1 "name" ?key1] [?current ?key1 ?x]
[?coord2 "name" ?key2] [?current ?key2 ?x]]
I don't know if this is down to Datascript/Datomic Datalog limitations or more the limitations of my understanding.
https://developer.mozilla.org/en-US/docs/Web/API/Window/devi...