This module contains strategies for filtering and partitioninglists.
Strategy details
|
|
ATerm
|
partition(Strategy s1, Strategy s2)
|
|
File
|
filter.str
|
|
Author
|
unknown
|
|
Since
|
unknown
|
|
|
Parameters
|
Strategy
s1
|
s1 a -> b
|
|
Strategy
s2
|
s2 a -> c
|
|
Partitions a list into a tuple of two lists.
|
type
|
List(a) -> (List(b), List(c))
|
|
|
|
|
ATerm
|
remove-all(Strategy s)
|
|
File
|
filter.str
|
|
Author
|
unknown
|
|
Since
|
unknown
|
|
|
Parameters
|
Removes all elements from a list that satisfy s
|
|
|
|
ATerm
|
retain-all(Strategy s)
|
|
File
|
filter.str
|
|
Author
|
unknown
|
|
Since
|
unknown
|
|
|
Parameters
|
Returns all elements in a list that satisfy s, as a list.
|
|
|
|
ATerm
|
reverse-filter(Strategy s)
|
|
File
|
filter.str
|
|
Author
|
unknown
|
|
Since
|
unknown
|
|
|
Parameters
|
Returns all elements in a list that satisfy s, as a list.Traverses the list in reverse order.
|
|
|