PrologJ Support for Set Operations

Overview

Standard Prolog includes a few facilities that support working with bags and sets, represented as lists - e.g. the set { x, y, z } is represented by the list [x, y, z], the bag { x, y, x } is represented by the list [x, y, x], and the empty set/bag is represented by []. Standard Prolog includes built-in predicates bagof/3, findall/3, and setof/3 for creating a bag or set of instances of a template satisfying some goal. (See [ Deremsart, Ed-Dbali, and Cervoni, 1996 ] for formal definitions of these predicates, which PrologJ supports as defined there in addition to the additional predicates described below.)

Builtin Predicates

The PrologJ set processing extension adds a number of built-in predicates for manipulating sets. (The predicates that accept sets as input(s) also accept bag as input(s).)

Copyright © 2005 - Russell C. Bjork. See the file See file COPYING in the root directory for copyright information.

Valid XHTML 1.0!