new, set new Full Description |
|
Syntaxnew shelf-type? shelf-name (^string-expression)? insertion-point? set new shelf-type? shelf-name (^ string-expression)? insertion-point? Where:
insertion-point
Purpose
local counter x variable initial-size 0 new x By default, the new item is inserted after the last item on the shelf. You can insert the new item before or after another item:
new x after item 2 new x before key "fred" new x before lastmost To make the new item the first item on the shelf, you can use A new item can be given a key as it is inserted:
new x key "fred" before key "barney" new x key "wilma" after item 6 The new x key "fred" before item 1 set x key "fred" to 5can be replaced with: set new x key "fred" before item 1 to 5 |