Login
|
Signup
langref.org
-
ruby
add..
all
clojure
cpp
csharp
erlang
fantom
fsharp
go
groovy
haskell
java
ocaml
perl
php
python
scala
Home
All
Solved
Unsolved
Strings
Numbers
Regex
Lists
Maps
Structure
Files
Dates
OOP
Networking
XML
Algorithms
Misc
Parallel
View Problem
Lists
Modification
Remove the last element of a list
ruby
list = ['Apple', 'Banana', 'Carrot']
list.delete_at(-1)
list = ['Apple', 'Banana', 'Carrot']
list.delete_at(-1)
ruby
list = ['Apple', 'Banana', 'Carrot']
list.pop
list = ['Apple', 'Banana', 'Carrot']
list.pop
Submit a new solution for
ruby
There are 22 other solutions in
additional
languages (
clojure
,
cpp
,
csharp
,
erlang
...)