Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Has been cancelled
6 lines
239 B
Prolog
6 lines
239 B
Prolog
%% append/3 — list concatenation, classic Prolog
|
|
%% Two clauses: empty-prefix base case + recursive cons-prefix.
|
|
%% Bidirectional — works in all modes: build, check, split.
|
|
append([], L, L).
|
|
append([H|T], L, [H|R]) :- append(T, L, R).
|