Talk:List

From MiniScript Wiki
Revision as of 15:52, 6 December 2021 by SebNozzi (talk | contribs) (Add slicing)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Things to illustrate:

  • empty list
  • getting length of list
  • referencing elements (by index)
  • adding elements (push)
  • finding the index of an element
  • removing elements (by INDEX!)
  • slicing! (also, using list[:] to create a copy of the list)
  • sorting
  • shuffling
  • joining elements
  • pop / pull (remove last and return / remove first and return)
  • sum
  • ranges