Open brigadier opened 8 years ago
is it possible to do prefix encode so that prefix(<<"ab">>) would be the exact prefix of prefix(<<"abc">>)? I see it could be done for lists.
prefix(<<"ab">>)
prefix(<<"abc">>)
And also prefix([term, <<"ab">>]) as a prefix for prefix([term, <<"abc">>])
prefix([term, <<"ab">>])
prefix([term, <<"abc">>])
It's a problem. I did a form of prefix encoding of binaries for the kvdb database:
https://github.com/Feuerlabs/kvdb/blob/master/src/kvdb_lib.erl#L261
...but I haven't tried to integrate it into sext.
is it possible to do prefix encode so that
prefix(<<"ab">>)
would be the exact prefix ofprefix(<<"abc">>)
? I see it could be done for lists.And also
prefix([term, <<"ab">>])
as a prefix forprefix([term, <<"abc">>])