Changes

Jump to navigation Jump to search
146 bytes added ,  11:38, 7 August 2014
no edit summary
| '''Summary'''
| Returns true if the ''map'' supplied as {{Code|$input}} contains an entry with a key equal to the supplied value of {{Code|$key}}; otherwise it returns false. No error is raised if the map contains keys that are not comparable with the supplied {{Code|$key}}.
If the supplied key is {{Code|xs:untypedAtomic}}, it is converted to compared as an instance of {{Code|xs:string}}. If the supplied key is the {{Code|xs:float}} or {{Code|xs:double}} value {{Code|NaN}}, the function returns true if there is an entry whose key is {{Code|NaN}}, or falseotherwise.
|-
| '''Examples'''
|-
| '''Summary'''
| Creates a new ''map'' containing a single entry. The key of the entry in the new map is {{Code|$key}}, and its associated value is {{Code|$value}}. If the supplied key is {{Code|xs:untypedAtomic}}, it is converted to compared as an instance of {{Code|xs:string}}. If the supplied key is the {{Code|xs:float}} or {{Code|xs:double}} value {{Code|NaN}}, the supplied function returns the value in the entry whose key is {{Code|$inputNaN}} is returned unchanged, or the empty sequence otherwise.
The function {{Code|map:entry}} is intended primarily for use in conjunction with the function <code>[[#map:new|map:new]]</code>. For example, a map containing seven entries may be constructed like this:
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu