Skip to content

Instantly share code, notes, and snippets.

@ayende
Created October 12, 2019 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayende/9cb862ec5db2037fa58a1355cd03ec18 to your computer and use it in GitHub Desktop.
Save ayende/9cb862ec5db2037fa58a1355cd03ec18 to your computer and use it in GitHub Desktop.
public interface IPostingList<TEnum>
where TEnum: struct, IPostingListEnumerator
{
public ulong FirstValue { get; }
public ulong NumberOfResults { get; }
public TEnum Enumerate(ulong start)
}
public interface IPostingListEnumerator
{
bool MoveNext(out Span<long> range);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment