Re: anonymous functions? anonymous variables
Michael Kay <mike-JkSD5nQpfvpWk0Htik3J/[email protected]>
| Newsgroups | gmane.text.xml.saxon.help |
|---|---|
| Message-ID | <[email protected]> |
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