Equations
- buffer.pop_back ⟨n + 1, a⟩ = ⟨n, a.pop_back⟩
- buffer.pop_back ⟨0, a⟩ = ⟨0, a⟩
Equations
- buffer.read ⟨n, a⟩ i = a.read i
Equations
- buffer.read' ⟨n, a⟩ i = a.read' i
Equations
- buffer.write' ⟨n, a⟩ i v = ⟨n, a.write' i v⟩
Equations
- b.append_list (v :: vs) = (b.push_back v).append_list vs
- b.append_list list.nil = b
Equations
- b.append_string s = b.append_list s.to_list
Equations
- buffer.iterate ⟨_x, a⟩ b f = a.iterate b f
Map a function over the buffer.
Equations
- buffer.map ⟨n, a⟩ f = ⟨n, a.map f⟩
Equations
- buffer.foldl ⟨_x, a⟩ b f = a.foldl b f
Equations
- buffer.rev_iterate ⟨_x, a⟩ b f = a.rev_iterate b f
@[instance]
Equations
- buffer.has_mem = {mem := buffer.mem α}
@[instance]
Equations
@[instance]
Equations
@[instance]
@[instance]