lisp

Will reading the Little Lisper help me in learning clojure ?

I plan to pick up the clojure language. I have at my disposal an old book: The Little Lisper I know there are more recent versions of it (The Little Schemer) but I'm wondering if it will help ease me into picking up Clojure. Or should I find other learning resource ? ...

(Random) in Common Lisp Not So Random?

Okay, final question and I'll have finished my number guessing game in Common Lisp! :D Whenever the game starts (or a new game begins after the first game), the following function is called. ;;; Play the game (defun play () ;; If it's their first time playing this session, ;; make sure to greet the user. (unless (> *number-o...

Making an instance of midi:midifile

I'm using a Lisp MIDI library for a small project I'm working on. Just to get started, I'm trying to write a simple MIDI file that plays middle C. However I can't seem to get this to work and can not find any documentation on how to do this sort of thing. Here is my code: (defun make-track () (list (make-instance 'midi:note-o...

CLOS for Clojure?

Does there exist anything like CLOS (Common Lisp Object System) for Clojure? If there isn't, how hard would it be to write one? Thanks in advance. -- Eric Grindt ...

How to select an Autocad entity by entity name for use in autocad command in a lisp

This might be something simple that I just keep missing but... I can get the entity name but is there anyway to use an entity name assigned to a varible to have an Autocad command use the entity as the selected object to act on? ...

Illegal Function Call in Common Lisp

I'm working on making a two player tic-tac-toe game, and am in the phase where I work out all of the errors in my code. The current error i'm stuck on is an illegal function call error in the following code: (cond [...snip...] ((= CHOICE 3) (IF (NUMBERP (AREF *BOARD* 0 2)) (SETF (AREF *BOARD* 0 2) *MARKER*) (INVALID-SELECTI...

Checking for a win in Tic-Tac-Toe

Okay, so I'm about finished with my latest project, a (admittedly not very good) implementation of Tic Tac Toe in Common Lisp (the whole program available here), but I'm stuck on one last part; I can't figure out how to get my function that checks for a winner working. The function (and its subordinate function) look like this: (defun c...

Common LISP on iPhone/iOS

Is it possible to call a Common Lisp function in iOS? (e.g. create it in a dynamic library?) ...

Managing Code Assets

Dear Stackoverflow, I have written quite a bit of code of the past few years. I've been using the Visual Studio Development Environment for my C# code, but I wouldn't call myself an advanced user of Visual Studio. I can create projects, create source code, and build/debug the project. I don't use many of the advanced features of the ...

Binomial Coefficient using Tail Recursion in LISP

Hello, I'm a Computer Science student starting to learn LISP. I have been said to program a function to find C(n,k) using tail recursion, and I would greatly appreciate your help. I have reached this: (defun combinatorio-recursivo-cola (n k) (cond ((or (< n k) (< k 0)) NIL) ((or (= k 0) (= n k)) 1) (T (* (combinatorio...

How to eliminate all levels of lists in LISP

Hello. This is my second quick-and-silly question about LISP, but I am kind of stuck. I need to access all the nodes in a list with several levels. I need something like: >> (get-symbols '(A (B (C D) E ))) (A B C D E) I don't care about the order. How would you do that? I prefer code intuitivity rather than efficency. Thanks ...