Answers for "remove last prolog"

0

remove last prolog

without_last([_], []).
without_last([X|Xs], [X|WithoutLast]) :- 
    without_last(Xs, WithoutLast).
Posted by: Guest on October-21-2021

Browse Popular Code Answers by Language