sext icon indicating copy to clipboard operation
sext copied to clipboard

prefix encode for binaries

Open brigadier opened this issue 9 years ago • 1 comments

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.

And also prefix([term, <<"ab">>]) as a prefix for prefix([term, <<"abc">>])

brigadier avatar Jul 06 '16 21:07 brigadier

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.

uwiger avatar Jul 07 '16 12:07 uwiger