CurryInfo: ertools-3.0.0 / Database.ERD.ToCDBI.createUnderscores

definition:
createUnderscores :: Int -> Int -> [CPattern]
createUnderscores ind len = case ind of
  0 -> case len of
         0 -> []
         n -> (cpvar "_") : (createUnderscores 0 $ n-1)
  1 -> (cpvar "a") : (createUnderscores 0 len)
  n -> (cpvar "_") : (createUnderscores (n-1) len)
demand:
no demanded arguments
deterministic:
deterministic operation
documentation:
-- Auxiliary function for genGetterSetter that creates the needed
-- amount of underscores and places the "a" at the correct position
failfree:
(_, _)
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_,_) |-> {:,[]}}
name:
createUnderscores
precedence:
no precedence defined
result-values:
{:,[]}
signature:
Prelude.Int -> Prelude.Int -> [AbstractCurry.Types.CPattern]
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
reducible on all ground data terms