00001 /* File: setof.H 00002 ** Author(s): Kostis Sagonas, David S. Warren, Bart Demoen 00003 ** Contact: xsb-contact@cs.sunysb.edu 00004 ** 00005 ** Copyright (C) The Research Foundation of SUNY, 1993-1998 00006 ** 00007 ** XSB is free software; you can redistribute it and/or modify it under the 00008 ** terms of the GNU Library General Public License as published by the Free 00009 ** Software Foundation; either version 2 of the License, or (at your option) 00010 ** any later version. 00011 ** 00012 ** XSB is distributed in the hope that it will be useful, but WITHOUT ANY 00013 ** WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00014 ** FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for 00015 ** more details. 00016 ** 00017 ** You should have received a copy of the GNU Library General Public License 00018 ** along with XSB; if not, write to the Free Software Foundation, 00019 ** Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00020 ** 00021 ** $Id: setof.H,v 1.9 2006/02/09 17:28:57 tswift Exp $ 00022 ** 00023 */ 00024 00025 00026 00027 :- export setof/3, bagof/3, findall/3, 00028 tsetof/3, tbagof/3, 00029 sort/2, keysort/2, '^'/2, pick/3, 00030 excess_vars/4. 00031 00032 :- import tfindall/3 from tables. 00033 :- import functor/3, (=..)/2, arg/3, 00034 % catch/3,throw/1, 00035 call/1 from standard. 00036 :- import '$$findall_init'/2, '$$findall_add'/3, 00037 % '$$findall_free'/1, 00038 '$$findall_get_solutions'/4 00039 from machine. 00040 :- import variant/2 from subsumes.