A few BinProlog specific predicates are available:
<first>_<second>.
<name>_<counter>.
sread/2 (i,o)
reads from a name a
(ground) term, swrite(i,o)
writes a term to a name.
termcat/3 (i,i,o)
adds its second argument as last
argument of its first argument and returns the new term
not/1
is a form of sound negation
for/3
as for instance
in ?-for(I,1,5),write(I),nl,fail
generates a failure driven loop
It is a good idea to take a look at BinProlog's *.pl
for
other builtin-or-library predicates before implementing them yourself.
The file write.pl
contain various output predicates like