ref: 9fd0e7fc78740ec3a0a1a5e97d571d0f9d02b85a
dir: /lists.pl/
:- module(lists, []). % List predicates length([], 0). length([_|Tail], Length) :- length(Tail, Length0), Length is Length0 + 1. append([], Ys, Ys). append([X|Xs], Ys, [X|Rest]) :- append(Xs, Ys, Rest).