def w_t_go

bend-osdev-bytes@0.1.1.0 · PROOF.bend:676

import bend-osdev-bytes@0.1.1.0/PROOF.bend as PROOF
import Base
import bend-osdev-bytes@0.1.1.0/bytes.bend as B

676# Octets' text and hex: each word read through bits8/of_bits8 is its byte
677def w_t_go(+ws: List<&2, B.OctByte>, +r: List<&2, B.OctByte>, +acc: String) -> {B.w8s.text.go(B.w8s.rev_onto(ws, r), acc) == B.w8s.text.go(r, B.to_string.cat(B.w8s.to_list(ws), acc)) : String}:
678  match ws:
679    case Nil{}:
680      {==}
681    case Con{B.OctByte{a0, a1, a2, a3, a4, a5, a6, a7}, t}:
682      w_t_go(t, Con{B.OctByte{a0, a1, a2, a3, a4, a5, a6, a7}, r}, acc)

Uses (7)

Used by (1)