def inc
import bend-collections-laws-math@1.0.0.0/src/math/generic.bend as Genericimport Base
import bend-collections-laws-math@1.0.0.0/src/math/num.bend as N
190def inc(~T: Data, ~op: N.Op<T> -> T, +x: T) -> T:
191 op(N.Add{x, op(N.One{})})
Uses (1)
Used by (13)
- bend-collections-laws-math@1.0.0.0/src/math/generic:comb_go
- bend-collections-laws-math@1.0.0.0/src/math/generic:fact_go
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u32int:inc_v
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/u64int:inc_v
- bend-collections-laws-math@1.0.0.0/src/math/generic:search_go
- …