IncrementingMaps RΒΆ
seg.spad line 453 [edit on github]
R: Join(Monoid, AbelianSemiGroup)
This package provides operations to create incrementing functions.
- increment: () -> R -> R
increment()
produces a function which adds1
to whatever argument it is given. For example, if {f
:=
increment()} thenf x
isx+1
.
- incrementBy: R -> R -> R
incrementBy(n)
produces a function which addsn
to whatever argument it is given. For example, if {f
:=
increment(n
)} thenf x
isx+n
.