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