On Sat, Dec 5, 2020 at 1:34 AM Christian Grün <cg@basex.org> wrote:
> > If we're going to have a modifier argument that changes the behaviour
> then it should be a map, not a string, to make it extensible. But even
> then, I don't like having a modifier argument that changes the essence of
> what the function does quite so fundamentally.
>
> I also regarded fn:slice to be a filter expression (as it returns
> items of a sequence that match certain conditions). But I see your
> point.
>
> I think it’s too much of a commitment to introduce four separate
> functions that do pretty much the same. Maybe it’s sufficient in most
> cases to use the new fn:index-where function:
>
>
+1 for this.
Thanks,
Dimitre