• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Section B.4. Stack Operators

B.4. Stack Operators

anypop Discard top element
any1 any2exch any2 any1Exchange top two elements
anydup any anyDuplicate top element
any1anyn ncopy any1anyn any1anynDuplicate top n elements
anynany0 nindex anynany0 anynDuplicate arbitrary element
anyn−1any0 n jroll any(j−1) mod nany0 anyn−1anyj mod n
  Roll n elements up j times



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint