CurryInfo: xml-3.0.0 / XCuery.with

definition:
with :: Data a => [a] -> [a]
with []     = unknown
with (x:xs) = unknown ++ x : with xs
demand:
argument 2
deterministic:
possibly non-deterministic operation
documentation:
--- The operation `with` evaluates to all lists containing the
--- elements in the argument in the same order. For instance,
---
---     > with [1,2]
---     1:2:_a
---     1:_a:2:_b
---     1:_a:_b:2:_c
---     ...
---
--- This operation can be used in a pattern to match XML structures
--- having at least the given elements as children, as in
---
---     getNamePhone
---       (xml "entry"
---            (with [xml "name"  [xtxt name],
---                   xml "phone" [xtxt phone]])) = name ++ ": " ++ phone
failfree:
(_, _)
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_,{[]}) |-> _ || (_,{:}) |-> _}
name:
with
precedence:
no precedence defined
result-values:
_
signature:
Prelude.Data a => [a] -> [a]
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
reducible on all ground data terms