Prolog - how do you insert an element to a list
<p>If I have a list in Prolog such as <code>X = [1, 2, 3, 4, 6, 7]</code>, how do I add the element 5 to the list to have <code>X = [1, 2, 3, 4, 5, 6, 7]</code>?</p>