Last active
January 1, 2016 22:14
-
-
Save hansenmc/c06ca4bbf4b27f0f43e5 to your computer and use it in GitHub Desktop.
MarkLogic supports XPath 3.0 Inline Function Expressions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "1.0-ml"; | |
(: http://www.w3.org/TR/xpath-30/#id-inline-func :) | |
let $square := function($i as xs:integer) as xs:integer { | |
$i * $i | |
} | |
return $square(3) | |
(: 9 :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment