DELETE
DELETE A, idx [, count]
Deletes count
elements at position idx
of
array A
.
Example 1: Delete element at position 2
1, 2, 3, 4, 5]
a = [print a ' Output: [1,2,3,4,5]
delete a, 2
print a ' Output: [1,2,4,5]
Example 2: Delete two elements starting at position 2
1, 2, 3, 4, 5]
b = [print b ' Output: [1,2,3,4,5]
delete b, 2, 2
print b ' Output: [1,2,5]
Code samples using DELETE
006 arrays+.bas
2048.bas
2048.bas
checkers.bas
checkers.bas
chess.bas
chess.bas
filemanager.bas
form demo.bas
hangman v2.bas
hangman.bas
heap.bas
insert delete test.bas
klotski_solver.bas
klotski_solver.bas
lsystem.bas
maze generator.bas
mine sweeper v4sb.bas
nim.bas
palm_cli.bas
palmcli.bas
pen pad.bas
shooter.bas
snake.bas
sokoban.bas
sokoban.bas
sokoban.bas
space shooter.bas
sudoku-solver.bas