This is a synonym for common-lisp.
Questions tagged [ansi-common-lisp]
19 questions
0
votes
1 answer
Recursive function traversing a string to found the closing bracket of a give opening bracket
I was trying make a function that return the closing bracket of a given opening bracket, I already can do this, but in my first attempt I can't understand where is my error, and I would like know to avoid the same problem in the future, here is my…

PerduGames
- 1,108
- 8
- 19
0
votes
1 answer
Special Declaration and Variables in Common Lisp
I am reading the Common Lisp Hyperspec and am struggling to understand the concept behind the Special declaration.
Namely, what are the special variables and why would we want them? I gathered that somehow we can change which scope the variable…

MadPhysicist
- 5,401
- 11
- 42
- 107
0
votes
1 answer
Defining functions Scheme-style in Common Lisp, without defun
In Scheme, you define functions like
(define f (lambda (x) ...))
In particular, you can do something like this
(define f (g))
where g is some function returning a function. Is it possible to do the same in Common Lisp, i.e. to associate a function…

BlenderBender
- 524
- 3
- 17
-2
votes
4 answers
a function in lisp called xtoy which returns a list from x to y
I am very new to lisp. I am trying to write a function named x2y which takes 2 arguments x and y which are integers and return a list of integers which starts from x and ends at y
(defun xtoy (X Y)
(cond ((> X Y) (list nil))
((= X Y)…

Deepak
- 1,503
- 3
- 22
- 45