Changes

Jump to navigation Jump to search
470 bytes removed ,  12:16, 20 November 2015
no edit summary
* {{Code|map:size(map:merge(()))}} returns {{Code|0}}.
* <code>map:size(map { "true": 1, "false": 0 })</code> returns {{Code|2}}.
|}
 
==map:serialize==
 
{| width='100%'
| width='120' | '''Signatures'''
|{{Func|map:serialize|$input as map(*)|xs:string}}<br/>
|-
| '''Summary'''
| This function is specific to BaseX. It returns a string representation of the supplied map. The purpose of this function is to get an insight into the structure of a map item; it cannot necessarily be used for reconstructing the original map.
|-
| '''Examples'''
|
* <code>map:serialize(map { 'A': (.1, xs:date('2001-01-01')) })</code> returns <code>{ "A": (0.1, "2001-01-01") }</code>.
|}
=Changelog=
 
;Version 8.4
* Removed: map:serialize (use fn:serialize instead)
;Version 8.0
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu