Skip to content

Instantly share code, notes, and snippets.

@line-o
Created February 17, 2018 08:34
Show Gist options
  • Select an option

  • Save line-o/b91eab33536785be413dfe7cc59261d7 to your computer and use it in GitHub Desktop.

Select an option

Save line-o/b91eab33536785be413dfe7cc59261d7 to your computer and use it in GitHub Desktop.
Examples using map:put
xquery version "3.1";
map:put(map{'a':'asdf'}, 'b', array { 1,2,3,4,map{'a':(2,3)}, array{ 1,2 }, (12) }),
map:put(map{'a':'asdf'}, 'c', array { 1,2,3,4, array{ 1,2 }, (12) }),
map:put(
map:put(map{'a':'asdf'}, 'b', array { 1 }), 'c', array { () }),
map:put(map{'a':'asdf'}, 'c', (1,(2,3), ('asdfas', 'asdfa'))),
map:put(map{'a':'asdf'}, 'b', (1)),
map:put(map{'a':'asdf'}, 'b', ())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment