To continue the guided tour go back where You came from
Continue reading the hints in German (...)Dieser Hinweis ist aus der Übung im WS 1994/95 oder aus einer noch älteren Übung oder war nie Teil einer Übung und ist daher möglicherweise für spätere Übungen nicht gültig!
Bild 3 \hinweis{appendnachsuffix4}
\hinweis{appendnachsuffix2}
Herleitung mittels fold/unfold
append([],As,As).
append([AX|AXs],AYs,[AX|AZs]) :-
append(AXs,AYs,AZs).
suffix(SXs,SZs) :-
SXs = SZs.
suffix(SXs,SZs) :-
SXs = AYs,
SZs = [_|AZs],
suffix(AYs,AZs). % Definition eingesetzt
Einsetzen unserer neuen Definition. Somit haben
wir ein neues Prädikat, das nicht mehr von
append/3 abhängt.
To continue the guided tour go back where You came from
Continue reading the hints in German