]> Repositorios git - scryer-prolog.git/commitdiff
DOC: add link to "Indexing dif/2" in DocLog format
authorMarkus Triska <[email protected]>
Wed, 25 Jan 2023 22:40:55 +0000 (23:40 +0100)
committerMarkus Triska <[email protected]>
Wed, 25 Jan 2023 22:40:55 +0000 (23:40 +0100)
src/lib/reif.pl

index 0e43a89729c8c28c4511054a969c36627126482e..55618e84ec507ead4bdbb9062a44be48cafcd95d 100644 (file)
@@ -1,3 +1,16 @@
+/** Predicates from [*Indexing dif/2*](https://arxiv.org/abs/1607.01590).
+
+Example:
+
+```
+?- tfilter(=(a), [X,Y], Es).
+   X = a, Y = a, Es = "aa"
+;  X = a, Es = "a", dif:dif(a,Y)
+;  Y = a, Es = "a", dif:dif(a,X)
+;  Es = [], dif:dif(a,X), dif:dif(a,Y).
+```
+*/
+
 :- module(reif, [if_/3, (=)/3, (',')/3, (;)/3, cond_t/3, dif/3,
                         memberd_t/3, tfilter/3, tmember/2, tmember_t/3,
                         tpartition/4]).