uget/uset #
empty #
push #
@[simp]
set #
copySlice #
append #
extract #
ofFn #
Equations
- ByteArray.ofFn f = { data := Array.ofFn f }
Instances For
@[simp]
@[simp]
@[simp]
theorem
ByteArray.get_ofFn
{n : Nat}
(f : Fin n → UInt8)
(i : Fin (ByteArray.ofFn f).size)
:
(ByteArray.ofFn f).get i = f (Fin.cast ⋯ i)
@[simp]
theorem
ByteArray.getElem_ofFn
{n : Nat}
(f : Fin n → UInt8)
(i : Nat)
(h : i < (ByteArray.ofFn f).size)
:
(ByteArray.ofFn f)[i] = f ⟨i, ⋯⟩