"old fashioned way" but accepted in ISO, clause / 2. You may encounter this when reusing / viewing some old examples.
Example:
?- [user]. |: app([], Y, Y). |: app([X|Xs], Y, [X|Zs]) :- app(Xs, Y, Zs). |: % user://1 compiled 0,15 sec, 17 clauses true. ?- clause(app(X,Y,Z),Body). X = [], Y = Z, Body = true ; X = [_G338|_G339], Z = [_G338|_G342], Body = app(_G339, Y, _G342).
Capellic
source share