screpl.utils.array module ¶
-
screpl.utils.array._partition( array , left , right , comp ) [source] ¶ -
EUDFuncN- Used on REPLArray.sort (quicksort algorithm)
-
screpl.utils.array._swap( array , i , j ) [source] ¶ -
EUDFuncN- Used on REPLArray.sort (quicksort algorithm)
-
class
screpl.utils.array.REPLArray( initval ) [source] ¶ -
Bases:
screpl.utils.struct.REPLStruct-
delete( index ) [source] ¶ -
Deletes item with index
before
index
index+1
…
size-2
size-1
after
index+1
index+2
…
size-1
(empty)
-
fields= ['max_size', 'size', 'contents', 'end'] ¶
-
index( item ) [source] ¶ -
Returns the smallest index which has item.
If there is no such index, returns -1
-