Skip to content
Snippets Groups Projects
Commit 9b209c98 authored by Jakob Botsch Nielsen's avatar Jakob Botsch Nielsen Committed by Robbert Krebbers
Browse files

More efficient list encoding for Countable

This changes the encoding used for finite lists of values of countable
types to be linear instead of exponential. The encoding works by
duplicating bits of each element so that 0 -> 00 and 1 -> 11, and then
separating each element with 10. The top 1-bits are not kept since we
know a 10 is starting a new element which ends with a 1.

Fix #28
parent 03127e9d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment