Re: Range Expressions

On Tue, Dec 1, 2020 at 5:51 PM Dimitre Novatchev <dnovatchev@gmail.com> wrote:
>
> I would rather prefer this to be a system-provided  record  type. Name it   range
>
> record(start? xs:integer, end? xs:integer, step? xs:integer)

As the existing range expression is simple to understand and popular,
I’m not sure if we should really do something completely new.

One could argue that there might be no need for a range modifier at
all, as it’s already simple to modify range values:

  (1 to 10)[. mod 2 = 1],
  (1 to 5) ! (. * 2),
  …

On the other hand, the proposed extension is basic enough to…
…sorry, yes, the bikeshed.

Received on Tuesday, 1 December 2020 18:24:04 UTC