Data update

This commit is contained in:
Ingy döt Net 2024-10-16 18:07:41 -07:00
parent 81fd053722
commit 52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions

View file

@ -1,15 +1,15 @@
^|EMal has dynamic lists.
|Lists have differen API to change the value in-place or not.
|SQL like name: insert, append, delete, order alter the current list.
|There are methods that operate on indexes, other on values.
|Lists have different API to change the value in-place or not.
|SQL-ish methods like: insert, append, delete, order, alter the current list.
|Different methods operate on indexes or on values.
|^
List a = int[] # a:[]
List a int[] # a:[]
a.append(8) # a:[8]
a.insert(1, 13) # a:[8,13]
a.delete(0) # a:[13]
a.clear() # a:[]
a.of(21, 33) # a:[21,33]
a[1] = 34 # a:[21,34]
List b = a.remove(21) # a:[21, 34], b:[34]
writeLine("a has " + a.length + " items, their values are " + a[0] + ", " + a[1])
writeLine("b has " + b.length + " item, its value is " + b[0])
a[1] 34 # a:[21,34]
List b a.remove(21) # a:[21, 34], b:[34]
writeLine("a has ", a.length, " items, their values are ", a[0], ", ", a[1])
writeLine("b has ", b.length, " item, its value is ", b[0])