let get s ~index =     try Some (B.get s index)     with _ -> None