|
|
Accumulation |
It is not satisfactory that we cannot reduce the empty list We remedy the problem by passing an extra parameter to the reduction functions We call this variant of the reduction functions for accumulation |
The recursive pattern is similar to the pattern of reduce-right. |
| Examples of right accumulations. The first row illustrates that we can accumulate the empty list.
The second and third rows are similar to the second and third rows in Table 15.1.
|
In relation to web programming we most often append accumulate lists and strings accumulate-right is part of the general LAML library Due to their deficiencies, the reduction functions are not used in LAML |