Skip to main content

2003 | OriginalPaper | Buchkapitel

Built-in Predicates

verfasst von : Prof. William F. Clocksin, Dr. Christopher S. Mellish

Erschienen in: Programming in Prolog

Verlag: Springer Berlin Heidelberg

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

In this chapter we introduce some of the built-in predicates that a Prolog system might provide. What do we mean when we say that a predicate is built-in?We mean that the predicate’s definition is provided in advance by the Prolog system, instead of by your own clauses. Built-in predicates may provide facilities that cannot beobtained by definitions in pure Prolog. Or they may provide convenient facilities just to save the programmer from having to define them. We have already encountered some built-in predicates: the predicates for reading and writing discussed in Chapter5. Also, the “cut” can be regarded as a built-in predicate.

Metadaten
Titel
Built-in Predicates
verfasst von
Prof. William F. Clocksin
Dr. Christopher S. Mellish
Copyright-Jahr
2003
Verlag
Springer Berlin Heidelberg
DOI
https://doi.org/10.1007/978-3-642-55481-0_6