00001 /* File: basics.H 00002 ** Author(s): David S. Warren, Kostis F. Sagonas 00003 ** Contact: xsb-contact@cs.sunysb.edu 00004 ** 00005 ** Copyright (C) The Research Foundation of SUNY, 1986, 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: basics.H,v 1.12 2005/01/24 14:59:11 dwarren Exp $ 00022 ** 00023 */ 00024 00025 00026 :- export append/3, copy_term/2, flatten/2, ground/1, ith/3, length/2, 00027 member/2, memberchk/2, subset/2, reverse/2, select/3, for/3. 00028 :- export log_ith/3, log_ith_bound/3. 00029 :- export logk_ith/4. 00030 :- export comma_memberchk/2, abscomma_memberchk/2, comma_to_list/2, 00031 comma_length/2, comma_member/2, comma_append/3. 00032 00033 :- import term_type/2 from machine. 00034 :- import integer/1, is_list/1 from standard. 00035 :- import arg/3, functor/3 from standard.