Loading TOC...

xdmp.arrayValues

xdmp.arrayValues(
   $Array as Array,
   [$flatten as Boolean]
) as ValueIterator

Summary

Returns the array values as a ValueIterator.

Parameters
$Array An array.
$flatten Include values from subarrays in the sequence. The default is false, meaning that subarrays are returned as array values.

Example


var a = ["hello","world",["one","two"]];
xdmp.arrayValues(a)
=> ("hello", "world", ["one", "two"])

Example

var a = ["hello","world",["one","two"]];
xdmp.arrayValues(a,true)
=> ("hello", "world", "one", "two")

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy