Re: Multiple ranges for range-fold, range-for-each, ...
Wolfgang Corcoran-Mathe 31 Aug 2020 18:32 UTC
Thanks. I overlooked the functions you mentioned, for whatever reason.
So we have:
* range-for-each
* range-map
* range-fold
* range-fold-right
* range-map->list
* range-filter->list
* range-remove->list
* range-map->vector
* range-filter->vector
* range-remove->vector
* range-count
* range-any
* range-every
* range-index
* range-index-right,
all variadic. This is a lot, but I think it's very important that we
get these right.
On 2020-08-31 19:53 +0200, Marc Nieper-Wißkirchen wrote:
> And what about "range-filter-map"? (See SRFI 1).
It's probably a good idea, since it's likely to be much more efficient
than the composition of range-map and range-filter.
> In my proposal, range=? receives a =? predicate to compare the values.
That seems straightforward and should be added.
It looks like we're going to have another draft, and a big one,
at that.
--
Wolfgang Corcoran-Mathe <xxxxxx@sigwinch.xyz>
"For good or ill, when I went off to grad school, I studied
linguistics, so the only computer language I used there was LISP.
It was my own personal McCarthy era." --Larry Wall