A note on higher-order functions versus logical variables

A commonly cited advantage of Prolog and similar logic languages is that data structures may contain logical (i.e. free) variables. These variables may be regarded as hooks into the data structure, to places where unification may be used to insert new information into the data structure. We show tha...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Veröffentlicht in:Information processing letters 1989-04, Vol.31 (2), p.91-95
1. Verfasser: Burton, F.Warren
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:A commonly cited advantage of Prolog and similar logic languages is that data structures may contain logical (i.e. free) variables. These variables may be regarded as hooks into the data structure, to places where unification may be used to insert new information into the data structure. We show that the same technique can be used in a functional programming language. A data structure is represented as a function. The formal parameter of the function is used to provide direct access to the part of a data structure where new information is to be inserted.
ISSN:0020-0190
1872-6119
DOI:10.1016/0020-0190(89)90074-4