Re: Multiple ranges for range-fold, range-for-each, ... Wolfgang Corcoran-Mathe (31 Aug 2020 16:35 UTC)
Re: Multiple ranges for range-fold, range-for-each, ... Marc Nieper-Wißkirchen (31 Aug 2020 17:54 UTC)
Re: Multiple ranges for range-fold, range-for-each, ... John Cowan (31 Aug 2020 18:20 UTC)
Re: Multiple ranges for range-fold, range-for-each, ... Wolfgang Corcoran-Mathe (31 Aug 2020 18:43 UTC)
Re: Multiple ranges for range-fold, range-for-each, ... Wolfgang Corcoran-Mathe (31 Aug 2020 18:49 UTC)
Re: Multiple ranges for range-fold, range-for-each, ... Marc Nieper-Wißkirchen (31 Aug 2020 18:57 UTC)
Re: Multiple ranges for range-fold, range-for-each, ... Marc Nieper-Wißkirchen (31 Aug 2020 18:55 UTC)
Re: Multiple ranges for range-fold, range-for-each, ... Wolfgang Corcoran-Mathe (01 Sep 2020 05:28 UTC)
Re: Multiple ranges for range-fold, range-for-each, ... John Cowan (01 Sep 2020 22:56 UTC)
Re: Multiple ranges for range-fold, range-for-each, ... Wolfgang Corcoran-Mathe (01 Sep 2020 23:50 UTC)

Re: Multiple ranges for range-fold, range-for-each, ... Marc Nieper-Wißkirchen 31 Aug 2020 18:57 UTC

Agreed!

Am Mo., 31. Aug. 2020 um 20:48 Uhr schrieb Wolfgang Corcoran-Mathe
<xxxxxx@sigwinch.xyz>:
>
> 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