def U32.from_nat
import Base1569def U32.from_nat(n: Nat) -> U32:
1570 match n:
1571 case 0n:
1572 0
1573 case 1n+p:
1574 U32.inc(U32.from_nat(p))
Uses (3)
Used by (1499)
- bendtorch-core@0.1.0.0/src/shape/core:count
- bend-collections-laws-math@1.0.0.0/spec/math/generic:u32_of
- bend-collections-laws-crypto@1.0.0.0/src/crypto/sha/packed/core:len_hi
- bend-collections-laws-crypto@1.0.0.0/src/crypto/sha/packed/core:len_lo
- bend-collections@1.0.0.0/src/crypto/sha/packed/core:len_hi
- …