https://github.com/sguessou/ninety-nine-lisp-problems
Ninety Nine Lisp Problems
https://github.com/sguessou/ninety-nine-lisp-problems
Last synced: about 2 months ago
JSON representation
Ninety Nine Lisp Problems
- Host: GitHub
- URL: https://github.com/sguessou/ninety-nine-lisp-problems
- Owner: sguessou
- Created: 2018-10-15T15:50:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-30T19:38:35.000Z (over 6 years ago)
- Last Synced: 2025-01-22T00:42:26.647Z (3 months ago)
- Language: Common Lisp
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 99 Lisp Problems
### Working with lists
#### Problem #1:
*Find the last box of a list.*
```
CL-USER> (my-last '(a b c d))
CL-USER> (D)
```
#### Problem #2:
*Find the last but one box of a list.*
```
CL-USER> (my-but-last '(a b c d))
CL-USER> (C D)
```
#### Problem #3:
*Find the K'th element of a list.*
```
CL-USER> (element-at '(a b c d e) 3)
CL-USER> C
```
#### Problem #4:
*Find the number of elements of a list.*#### Problem #5:
*Reverse a list.*#### Problem #6:
*Find out whether a list is a palindrome.*
```
CL-USER> (palindrome '(X A M A X))
T
CL-USER> (palindrome '(H E L L O))
NIL
```