Re: anonymous functions? anonymous variables

Ihe Onwuka <[email protected]>
Newsgroups gmane.text.xml.saxon.help,gmane.text.xml.xsl.general.mulberrytech
Message-ID <CALfs7+w0k0C7Gatk2jJOvD0y_EH9MJ+_z9_y6c0HiQ9o-p3R6g@mail.gmail.com>
Hah.... wrong mailing list. Oh well.
If it is up to a vote the former seems more intuitive and scalable (don't
have to count the variables).

On Sun, Aug 16, 2020 at 12:00 PM Michael Kay <mike-JkSD5nQpfvpWk0Htik3J/[email protected]> wrote:

> In my XML Prague 2020 paper my proposal would allow
>
> _{$2}
>
> though that feels a little bit too terse...
>
> Michael Kay
> Saxonica
>
> On 16 Aug 2020, at 02:29, Ihe Onwuka <[email protected]> wrote:
>
> Since I don't have to give a function a name it would also be nice if I
> didn't have to name variables I am not using.
>
> e.g
>
> Suppose I have a constraint that a function must have 2 arguments but I
> only need to use one I have to write
>
> function ($k, $v) {$v}
>
> instead of something like
>
> function (_,$v) {$v}
>
>
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
>

_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[email protected]
https://lists.sourceforge.net/lists/listinfo/saxon-help
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.