Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dynamic function calls, inline functions, function literals... #17

Open
JohannesLichtenberger opened this issue Jan 12, 2022 · 1 comment

Comments

@JohannesLichtenberger
Copy link
Member

JohannesLichtenberger commented Jan 12, 2022

For instance:

xquery version "3.0";
declare namespace db="http://sirix.io/xquery/db";
declare function db:map($func, $list) {
    for $item in $list return $func($item)
};
let $fun := function($x) { $x * $x }
return db:map($fun, 1 to 5)
@JohannesLichtenberger
Copy link
Member Author

So far I've added closures and anonymous functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant