Re: Multiple ranges for range-fold, range-for-each, ...
Wolfgang Corcoran-Mathe 31 Aug 2020 18:45 UTC
Edit: range-{filter, remove}->{list, vector} shouldn't be in the list
of variadic procedures. Instead, we should have
range-filter-map->list
range-filter-map->vector
which do exactly what we'd like a variadic filter to do, anyway:
(range-filter-map->list (lambda (x y) (and (even? x)
(even? y)
(list x y)))
(numeric-range 0 4)
(numeric-range 4 8))
; => ((0 4) (2 6))
--
Wolfgang Corcoran-Mathe <xxxxxx@sigwinch.xyz>
"Heresy is a cradle; orthodoxy, a coffin. Why should man be
afraid to think, and why should he fear to express his thoughts?"
--Robert G. Ingersoll