ocaml-containers
ocaml-containers copied to clipboard
Semantics of CCBV.resize
I am confused by the current code.
- Should this be
trueorfalse? Current, it returnstrue.
let bv = CCBV.create ~size:3 true in CCBV.resize bv 1; CCBV.get bv 2
- Should this be exception-free? Current, it raises an exception.
let bv = CCBV.create ~size:1 true in CCBV.resize bv 0