CurryInfo: base-3.4.0 / Data.List.insertBy

definition: Info
 
insertBy :: (a -> a -> Bool) -> a -> [a] -> [a]
insertBy _  x []     = [x]
insertBy le x (y:ys) = if le x y
                         then x : y : ys
                         else y : insertBy le x ys
demand: Info
 argument 3
deterministic: Info
 deterministic operation
documentation: Info
 
Inserts an object into a list according to an ordering relation.
@param le - an ordering relation (e.g., less-or-equal)
@param x - an element
@param xs - a list
@return a list where the element has been inserted
failfree: Info
 (_, _, _)
indeterministic: Info
 referentially transparent operation
infix: Info
 no fixity defined
iotype: Info
 {(_,_,{[]}) |-> {:} || (_,_,{:}) |-> {:}}
name: Info
 insertBy
precedence: Info
 no precedence defined
result-values: Info
 {:}
signature: Info
 (a -> a -> Prelude.Bool) -> a -> [a] -> [a]
solution-complete: Info
 operation might suspend on free variables
terminating: Info
 yes
totally-defined: Info
 reducible on all ground data terms