def get

mylsm-lsm-store@0.6.0.1 · src/hub_sha/core.bend:70

import mylsm-lsm-store@0.6.0.1/src/hub_sha/core.bend as Core
import Base

70# Handle get in the SHA-256 compression implementation.
71def get(xs: List<&2, U32>, index: Nat) -> U32:
72  match xs index:
73    case Nil{} _:
74      0
75    case h <> t 0n:
76      h
77    case h <> t 1n+p:
78      get(t, p)

Uses (3)

Used by (1)