Re: range->vector Wolfgang Corcoran-Mathe 01 Sep 2020 17:43 UTC

On 2020-09-01 19:37 +0200, Marc Nieper-Wißkirchen wrote:
> PS For the final sample implementation, I would case-lambda-single out
> the 0, 1, and 2-range case, for which more efficient (or even trivial)
> implementations are possible. Especially the 2-range case will
> probably be used much more than the rest.

Definitely.

I've adopted single-range fast paths for all of the now-variadic
procedures, but I agree that append calls for the 0, 1 and 2-ary
cases to all be performant.

Updated implementation (and yes, tests!) incoming.

--
Wolfgang Corcoran-Mathe  <xxxxxx@sigwinch.xyz>

"It is better to forget time altogether.  Time plays no role at the
fundamental level of physics." --Carlo Rovelli