def factorial
import bend-collections-laws-math@1.0.0.0/src/math/natural.bend as Naturalimport Base
122def factorial(+n: Nat) -> Nat:
123 factorial_go(n, 1n)
Uses (2)
Used by (5)
- bend-collections-laws-math@1.0.0.0/spec/math/generic:Factorial.checked
- bend-collections-laws-math@1.0.0.0/proofs/math/natural/fact:factorial_ok
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:fact_top
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64int:fact_top
- bend-collections-laws-math@1.0.0.0/spec/math/natural:Factorial.value