def hex_walk

bend-collections@1.0.0.0 · src/crypto/blake/blake2b/hex.bend:27

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

27# Formatting helper walks the sixteen digest words; it does not create a digest list.
28def hex_walk(n: Nat, +index: U32, pair: Array<U32> & U32) -> String:
29  match n pair:
30    case 0n Tuple{a,w}: hex_word(w)
31    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)