next up previous
Next: tail/2 Up: Recursion and lists Previous: first/2

second/2

One which returns the second element of a list:
second([First, Second|Rest], Second).


Steve Harlow 2001-11-26