Changes

Jump to navigation Jump to search
458 bytes removed ,  12:16, 20 November 2015
no edit summary
* <code>array:sort([1,2,3], function($x) { -$x })</code> returns <code>[3, 2, 1]</code>
* <code>array:sort((1, 'a'))</code> returns an error (strings and integers cannot be compared)
|}
 
==array:serialize==
 
{| width='100%'
| width='120' | '''Signatures'''
|{{Func|array:serialize|$input as array(*)|xs:string}}<br/>
|-
| '''Summary'''
| This function is specific to BaseX. It returns a string representation of the supplied array. The purpose of this function is to get an insight into the structure of an array item; it cannot necessarily be used for reconstructing the original array.
|-
| '''Examples'''
|
* <code>array:serialize([ 1, (2, 3), 4 to 6 ])</code> returns <code>[1, (2, 3), (4, 5, 6)]</code>.
|}
=Changelog=
 
;Version 8.4
* Removed: array:serialize (use fn:serialize instead)
Introduced with Version 8.0.
[[Category:XQuery]]
Bureaucrats, editor, reviewer, Administrators
12,024

edits

Navigation menu