def hex_walk

bend-collections@1.0.0.0 · src/crypto/blake/blake3/hex.bend:19

import bend-collections@1.0.0.0/src/crypto/blake/blake3/hex.bend as Hex
import Base

19def hex_walk(n: Nat, +index: U32, pair: Array<U32> & U32) -> String:
20  match n pair:
21    case 0n Tuple{a,w}: hex_word(w)
22    case 1n+p Tuple{a,w}: hex_word(w) ++ hex_walk(p,U32.inc(index),Array.get(U32,a,index))

Uses (10)

Used by (1)