xguerin / bitstring

OCaml Bitstring - bitstring matching for OCaml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fast Bitstring.is_prefix

emberian opened this issue · comments

This would be handy. Currently I do the very inefficient

let is_prefix t ~prefix = String.is_prefix (of_string t) ~prefix:(of_string prefix)