The left and right commands find the left and right parts of a list. (See Section 5.2.4, Section 8.2.3, Section 6.5.1, Section 6.6.2, Section 9.3.4 and Section 9.3.5 for other uses of left and right.)
left([0,1,2,3,4,5,6,7,8],3) |
|
right([0,1,2,3,4,5,6,7,8],4) |
|