Functional Idiom catalog for xquery 3.0 presented at Balisage 2016
Hat tip to the following for:
Clifford Anderson examples https://gist.github.com/CliffordAnderson/0c45f973ef45228ab685
John Snelson data.xq for Algebraic Data Types https://github.com/jpcs/data.xq
John Snelson functional.xq for functional primitives https://github.com/jpcs/functional.xq