This language bar is your friend. Select your favorite languages!
Select your favorite languages :
- Or search :
- Ada
- Clojure
- C++
- C#
- Dart
- Fortran
- Go
- Go
- Haskell
- Haskell
- JS
- Java
- Java
- Java
- Java
- PHP
- Pascal
- Perl
- Python
- Ruby
- Rust
items.pop_back();
Removes last element from items, without returning anything.
If items is already empty, then behaviour is undefined.
If items is already empty, then behaviour is undefined.
items = items[:len(items)-1]
If items is already empty, this will panic with "slice bounds out of range".
Warning: the last element still exists beyond len(items), thus it won't be garbage collected.
Warning: the last element still exists beyond len(items), thus it won't be garbage collected.
int n, t[] = new int[n = items.length - 1];
arraycopy(items, 0, t, 0, n);
items = t;