Warning!
The page was not fully loaded, probably because of a network issue. It could be that not all functionalities work as expected. Please try reloading the page.
Write a predicate to find the second to last element of a list.
?-
before_last
(
X
,[
a
,
b
,
c
,
d
]).
X
=
c