This module provides datatypes and operations to implement operations with plural arguments.
Author: Michael Hanus
Version: December 2012
plural
:: PluralArg a -> a
Access a plural argument by applying the wrapped operation. |
This trivial type synonym is used to mark plural arguments in a Curry program.
Type synonym: Plural a = a
Datatype for representing plural arguments.
A plural argument is a unary operation wrapped with some constructor.
Thus, each expression e
to construct an actual plural argument
must be replaced by (PluralArg (\_->e))
.
Constructors:
PluralArg
:: (() -> a) -> PluralArg a