Skip to content

Bug fix and enhancements in with-accumulators

Latest
Compare
Choose a tag to compare
@tfeb tfeb released this 15 Jun 10:34
· 1 commit to main since this release
v8.7.0

with-accumulators was broken in the last release: it would get the arglist of the local function wrong. This fixes that and adds a new by argument:

(with-accumulators ((a + :by 1))
  ...
  (a)
  ...)

will make the local function have no arguments and step by the value of by. by is a form evaluated in the current lexical environment for each call.