Functions, operators, and data types for XPath 3.0

fn:filter(), fn:fold-left() and fn:fold-right() functions: the implementations have been altered to match the 2014 version of the W3C specification. This changes the order of the arguments to the function, with the main sequence now first and the applied function argument last.

fn:map() and fn:map-pairs() functions: renamed to fn:for-each() and fn:for-each-pair() respectively to match the 2014 version of the W3C specification. This also changes the order of the arguments to the functions, with the applied function argument now last.