Xsb List Utilities Library
- Apparently the configuration of xsb on our linux machines does not automatically load
the library that contains basic list operations such as append, length, reverse.
- Of course you can write these routines yourself, but it's also useful to know how to
load the library.
- The list utility library is called "basics", and it can be loaded
in several ways:
- Simply load the library directly from the xsb prompt, like this:
[basics].
- Use a command line option to cause the library to be loaded on startup:
xsb -e [basics].
-
You can of course create an alias that contains this
option.
- Create an xsb startup file, which should be named
.xsb/xsbrc.P
, and in that file put the command
":- [basics]." (with the :- but without the quotes).
- To find out what library a utility is in you can look at
(volume 2 of the prolog manual.
Module names are specified in italics following the name of the predicate. The list
utilities are given here.