14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

136 Data Structures Chapter 7<br />

Lists<br />

Table 7.1 List Operators (Continued)<br />

Operator and Function Syntax Explanation<br />

Remove()<br />

Remove From()<br />

Remove(list, ,<br />

)<br />

Remove From(list,<br />

, )<br />

Returns a copy of the list with the n items<br />

deleted, starting from the indicated<br />

position (i). If n is omitted, the item at i is<br />

deleted. If n and i are omitted, the item at<br />

the end is removed. This function does not<br />

change the original list.<br />

Deletes n items from the list, starting from<br />

the indicated position (i). If n is omitted,<br />

the item at i is deleted. If n and i are<br />

omitted, the item at the end is removed.<br />

This function does change the original list.<br />

Shift() Shift(list, ) Returns a copy of the list with n items<br />

shifted from the front of the list to the end<br />

of the list. If n is omitted, the first item is<br />

moved to the end of the list. This function<br />

does not change the original list.<br />

Shift Into() Shift Into(list, ) Shifts n items from the front of the list to<br />

the end of the list. If n is omitted, the first<br />

item is moved to the end of the list. This<br />

function does change the original list.<br />

Sort List() Sort List(list) Returns a copy of the list sorted in<br />

ascending order. This function does not<br />

change the original list.<br />

Sort List Into() Sort List Into(list) Sorts the list in ascending order. This<br />

function does change the original list.<br />

Sort Ascending() Sort Ascending(list) Returns a copy of the list sorted in<br />

ascending order. This function does not<br />

change the original list.<br />

Sort<br />

Descending()<br />

Sort Descending(list)<br />

Returns a copy of the list sorted in<br />

descending order. This function does not<br />

change the original list.<br />

Reverse() Reverse(list) Returns a copy of the list with the items in<br />

reverse order. This function does not<br />

change the original list.<br />

Reverse Into() Reverse Into(list) Reverses the order of the items in the list.<br />

This function does change the original list.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!