def fit

bend-collections@1.0.0.0 · src/crypto/poly1305/limbs.bend:56

import bend-collections@1.0.0.0/src/crypto/poly1305/limbs.bend as Limbs
import Base

56# The first n limbs, padded with zeros to exactly n.
57def fit(n: Nat, +xs: List<&2, U32>) -> List<&2, U32>:
58  match n:
59    case 0n: Nil{}
60    case 1n+k: hd0(xs) <> fit(k, tl(xs))

Uses (5)

Used by (1)