def previous

bend-collections@1.0.0.0 · spec/crypto/sha.bend:90

import bend-collections@1.0.0.0/spec/crypto/sha.bend as Sha
import Base

90# The FIPS recurrence names prior words by lags 2, 7, 15 and 16.
91def previous(history: List<&2, U32>, lag: Nat) -> U32:
92  nth(history, Nat.sub(lag, 1n))

Uses (5)

Used by (1)