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 adds1to whatever argument it is given. For example, if {f:=increment()} thenf xisx+1.
- incrementBy: R -> R -> R
incrementBy(n)produces a function which addsnto whatever argument it is given. For example, if {f:=increment(n)} thenf xisx+n.