Skip to main content
Filter by
Sorted by
Tagged with
1 vote
2 answers
190 views

As a preamble, I am implementing two simple commands I can use via a little package in SBCL, which emulates Allegro repl. The package is sb-aclrepl, found in the contrib folder in SBCL sources. The ...
myname's user avatar
  • 368
1 vote
1 answer
140 views

According to CLTL2, all of functions that deal with key modifiers seem to be removed from the standard. SBCL does not seem to have any of those. What is the printing representation of characters with ...
myname's user avatar
  • 368
2 votes
1 answer
53 views

I want to perform (rassoc) over a nested list like this: (setq mlist (list (list (cons "A" 0) (make-hash-table)) (list (cons "B" 1) (...
myselfesteem's user avatar
3 votes
0 answers
247 views

I'm not new to Lisp but new to CL and a bit confused by the file and directory path handling. What I need: A completely cross-platform way to deal with file and directory paths that can be specified ...
Eric '3ToedSloth''s user avatar
0 votes
1 answer
128 views

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 ...
PerduGames's user avatar
  • 1,249
1 vote
4 answers
335 views

I've written two versions of a lisp function. The main difference between the two is that one is done with recursion, while the other is done with iteration. Here's the recursive version (no side ...
progner's user avatar
  • 139
0 votes
1 answer
898 views

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 ...
MadPhysicist's user avatar
  • 5,891
0 votes
1 answer
937 views

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 ...
BlenderBender's user avatar
4 votes
1 answer
833 views

I'd like to define methods on class objects, that inherit based upon the class' ancestry in the same way that instances' methods inherit. Is there some way to do this? Here's what's not working: eql-...
Dave Morse's user avatar
3 votes
2 answers
841 views

I've started studying Lisp 2 days ago and I'm reading Paul Graham's ANSI Common List, which exposes the language structure in a very interesting way. It's not too much theoretical for beginners, and ...
Giovanni Oliveira's user avatar
3 votes
1 answer
295 views

Looking at the docs for #'adjoin in the HyperSpec, I see the following in the Examples section: (setq slist '()) => NIL (setq slist (adjoin '(test-item 1) slist)) => ((TEST-ITEM 1)) (adjoin '(...
Adrian's user avatar
  • 730
-2 votes
4 answers
160 views

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) ...
Deepak's user avatar
  • 1,555