Kawa, the Java-based Scheme system
The SRFI-1 List Library
is available, though not enabled by default. To use its functions you
(require 'list-lib) or
(iota 5 0 -0.5) ;; => (0.0 -0.5 -1.0 -1.5 -2.0)
- Function: reverse! list
- The result is a list consisting of the elements of list in reverse order.
No new pairs are allocated, instead the pairs of list are re-used,
cdr cells of list reversed in place. Note that if list
was pair, it becomes the last pair of the reversed result.