Created
December 17, 2013 08:38
-
-
Save xquery/8001858 to your computer and use it in GitHub Desktop.
lexical closure in xquery 3 - see how the inline function 'sees' the variable $b ... neat right ?
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
let $b := 2 | |
return | |
map(function($x) { $x * $x * $b }, 1 to 5) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment