Next: Modules, Previous: User-defined equality and comparison, Up: Top [Contents]
Mercury supports higher-order functions and predicates with currying, closures, and lambda expressions. (To be pedantic, it would be more accurate to say that Mercury supports higher-order procedures: in Mercury, when you construct a higher-order term, you only get one mode of a predicate or function; if you want multiple modes, you must pass multiple higher-order procedures.)
• Creating higher-order terms: | ||
• Calling higher-order terms: | ||
• Higher-order insts and modes: |