Previous Up Next

5.3.6  Obtaining left and right portions of a list

The left and right commands find the left and right parts of a list. (See Section 4.2.4, Section 7.2.3, Section 5.5.1, Section 5.6.2, Section 8.2.4 and Section 8.2.5 for other uses of left and right.)

Examples

left([0,1,2,3,4,5,6,7,8],3)
     

0,1,2
          
right([0,1,2,3,4,5,6,7,8],4)
     

5,6,7,8
          

Previous Up Next