Difference between revisions of "Talk:List"

From MiniScript Wiki
Jump to navigation Jump to search
(Added outcome of discussion)
(Cleaned up - added things to illustrate)
Line 1: Line 1:
What is the purpose of having a separate "List methods" page?
 
  
Is that really needed or could the be also listed here?
+
Things to illustrate:
  
--[[User:SebNozzi|SebNozzi]] ([[User talk:SebNozzi|talk]]) 16:40, 5 December 2021 (UTC)
+
* empty list
 
+
* getting length of list
As discussed, the methods could be added to this page. No need for a new one.
+
* referencing elements (by index)
 
+
* adding elements (push)
--[[User:SebNozzi|SebNozzi]] ([[User talk:SebNozzi|talk]]) 17:26, 5 December 2021 (UTC)
+
* finding the index of an element
 +
* removing elements (by INDEX!)
 +
* sorting
 +
* shuffling
 +
* joining elements
 +
* pop / pull (remove last and return / remove first and return)
 +
* sum
 +
* ranges

Revision as of 20:38, 5 December 2021

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!)
  • sorting
  • shuffling
  • joining elements
  • pop / pull (remove last and return / remove first and return)
  • sum
  • ranges