Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upInconsistent return types in clojure.data/diff tuple #296
Comments
|
Good catch! No, this is not expected. Probably a bug |
I expected the result of
diffto be a tuple of a list of Datoms ornilfor things-only-in-a, things-only-in-b, and things-in-both. things-in-both is allowed to be a list of Datoms,nil, or aDB. Is this expected?Expected return type
Actual return type:
[([datascript/Datom] | nil) ([datascript/Datom] | nil) ([datascript/Datom] | nil) ]Actual return type
[([datascript/Datom] | nil) ([datascript/Datom] | nil) ([datascript/Datom] | datascript/DB | nil) ]Examples