December 29th, 2009, 12:42 PM
Reading from a list - LISP
I'm trying to retrieve all of the games from a list of games in LISP but am having trouble writing the function.
Here is the code:
And I wish to retrieve the details of 1 game. I tried the following code:
(setf games '(
; And so on...
And if I type (retrieve-game "Doom") I get NIL.
(defun retrieve-game (title)
(assoc 'title games))
I am very confused, can anyone help me?
December 30th, 2009, 06:13 PM
Don't all rush at once to respond!
It's okay anyways guys, I worked it out!