CurryInfo: base-3.4.0 / Data.List.inits

definition: Info
 
inits :: [a] -> [[a]]
inits []     =  [[]]
inits (x:xs) =  [] : map (x:) (inits xs)
demand: Info
 argument 1
deterministic: Info
 deterministic operation
documentation: Info
 
Returns all initial segments of a list, starting with the shortest.
Example: `inits [1,2,3] == [[],[1],[1,2],[1,2,3]]`
@param xs - the list of elements
@return the list of initial segments of the argument list
failfree: Info
 _
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {({[]}) |-> {:} || ({:}) |-> {:}}
name: Info
 inits
precedence: Info
 no precedence defined
result-values: Info
 {:}
signature: Info
 [a] -> [[a]]
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 yes
totally-defined: Info
 reducible on all ground data terms