Skip to content

Instantly share code, notes, and snippets.

@hansenmc
Last active January 2, 2016 00:29
Show Gist options
  • Save hansenmc/ae8e75c4b3d5e09572a5 to your computer and use it in GitHub Desktop.
Save hansenmc/ae8e75c4b3d5e09572a5 to your computer and use it in GitHub Desktop.
MarkLogic supports XPath 3.0 Simple Map Operators !
xquery version "1.0-ml"; (: also works with 3.0, 3.1:)
(: http://www.w3.org/TR/xpath-30/#id-map-operator :)
let $letters := ("Alpha", "Beta", "Gamma") ! substring(., 1, 1)
return string-join($letters, ", ")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment