Extensive use of contains is pretty expensive. So let's add a snippet that asserts that a u64 list is sorted. Alternative a snippet that returns a boolean indicating if the list is sorted.
This snippet is needed by consensus logic in [neptune-core]'(https://github.com/Neptune-Crypto/neptune-core).
Extensive use of
containsis pretty expensive. So let's add a snippet that asserts that au64list is sorted. Alternative a snippet that returns a boolean indicating if the list is sorted.This snippet is needed by consensus logic in [
neptune-core]'(https://github.com/Neptune-Crypto/neptune-core).