(reverse list)
Reverse that list.
This function reverses the order of the items in a list.
Examples
Code | Returns |
---|---|
(setq v '("first" "second" "third")) | (first second third) |
(reverse v) | (third second first) |
(reverse '(1 2 3 4 5)) | (5 4 3 2 1) |
Reverse that list.
This function reverses the order of the items in a list.
Examples
Code | Returns |
---|---|
(setq v '("first" "second" "third")) | (first second third) |
(reverse v) | (third second first) |
(reverse '(1 2 3 4 5)) | (5 4 3 2 1) |