JSONiq follows the W3C standard regarding function types. The following explanations are non-normative.
Figure 8. FunctionType
Figure 9. AnyFunctionType
Figure 10. TypedFunctionType