gengyangcai
11/10/2015 8:00:00 AM
I defined a function called "our-fifth" to return the fifth element of a list and it works well ----
CL-USER 3 : 1 > (defun our-fifth (x)
(car (cdr (cdr (cdr (cdr x))))))
OUR-FIFTH
CL-USER 4 : 1 > (our-fifth '(a b c d e f g))
E
but when i changed the function name to simply "fifth", it gives an error message ----
CL-USER 6 : 1 > (defun fifth (x)
(car (cdr (cdr (cdr (cdr x))))))
Error: Redefining function FIFTH visible from package COMMON-LISP.
1 (continue) Redefine it anyway.
2 (abort) Return to level 1.
3 Return to debug level 1.
4 Redefine it anyway.
5 Return to level 0.
6 Return to top loop level 0.
Am I missing something here ? This is not a 'troll' question right ?
A nice programming joke :
Q: How do you tell an introverted computer scientist from an extroverted computer scientist?
A: An extroverted computer scientist looks at your shoes when he talks to you.