Talk:List

From MiniScript Wiki
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