This library defines a data structure for sequence of values.
It is used in search trees (module SearchTree
) as well as in
set functions (module SetFunctions
).
Using sequence of values (rather than standard lists of values)
is necessary to get the behavior of set functions
w.r.t. finite failures right, as described in the paper
J. Christiansen, M. Hanus, F. Reck, D. Seidel: A Semantics for Weakly Encapsulated Search in Functional Logic Programs Proc. 15th International Conference on Principles and Practice of Declarative Programming (PPDP'13), pp. 4960, ACM Press, 2013
Note that this is a simple implementation for PAKCS in order to provide some functionality used by other modules. In particular, the intended semantics of failures is not provided in this implementation.
Author: Fabian Reck, Michael Hanus
Version: February 2016
emptyVS
:: ValueSequence a
An empty sequence of values. 
addVS
:: a > ValueSequence a > ValueSequence a
Adds a value to a sequence of values. 
failVS
:: Int > ValueSequence a
Adds a failure to a sequence of values. 
(++)
:: ValueSequence a > ValueSequence a > ValueSequence a
Concatenates two sequences of values. 
vsToList
:: ValueSequence a > [a]
Transforms a sequence of values into a list of values. 
A value sequence is an abstract sequence of values. It also contains failure elements in order to implement the semantics of set functions w.r.t. failures in the intended manner (only in KiCS2).
Constructors:
An empty sequence of values.

Adds a value to a sequence of values.

Adds a failure to a sequence of values. The argument is the encapsulation level of the failure.

Concatenates two sequences of values. 
Transforms a sequence of values into a list of values.
