def previous
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/sha.bend as Shaimport 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))