definition:
|
tuplePattern :: [CPattern] -> CPattern
tuplePattern ps
| l==0 = CPComb (pre "()") []
| l==1 = head ps
| otherwise = CPComb (pre ('(' : take (l-1) (repeat ',') ++ ")")) ps
where l = length ps
|
demand:
|
no demanded arguments
|
deterministic:
|
deterministic operation
|
documentation:
|
--- Constructs a tuple pattern from list of component patterns.
|
failfree:
|
{:}
|
indeterministic:
|
referentially transparent operation
|
infix:
|
no fixity defined
|
iotype:
|
{(_) |-> _}
|
name:
|
tuplePattern
|
precedence:
|
no precedence defined
|
result-values:
|
_
|
signature:
|
[AbstractCurry.Types.CPattern] -> AbstractCurry.Types.CPattern
|
solution-complete:
|
operation might suspend on free variables
|
terminating:
|
possibly non-terminating
|
totally-defined:
|
possibly non-reducible on same data term
|