consult(:File)
?- consult(load). | % consult load
or load.pl |
?- [library(lists)]. | % load library lists |
?- [user]. | % Type program on the terminal |
The predicate consult/1
is equivalent to load_files(File, []), except for handling
the special file user, which reads clauses from the
terminal. See also the stream(Input) option of
load_files/2.
Abbreviation using ?- [file1,file2]. does
not work for the empty list ([]). This facility is
implemented by defining the list as a predicate. Applications may only
rely on using the list abbreviation at the Prolog toplevel and in
directives.