Search found 4 matches
- Sat Dec 17, 2011 11:59 am
- Forum: Common Lisp
- Topic: run multiple function
- Replies: 1
- Views: 3039
Re: run multiple function
First off, please put your code between code tags (hit the "code" button and paste your code between the tags). Second, in Lisp, you don't use (function (arg1 arg2 ... argN)) to call functions, you use (function arg1 arg2 ... argN) Also, you need a space between the name of the function an...
- Tue Nov 08, 2011 3:53 pm
- Forum: Common Lisp
- Topic: Is there a tcp framework like python's twisted?
- Replies: 3
- Views: 5331
- Mon Nov 07, 2011 8:02 pm
- Forum: Common Lisp
- Topic: How to find the position of atom in the list
- Replies: 1
- Views: 3089
Re: How to find the position of atom in the list
I replied in your previous thread with a working position-in-list function. However, Common Lisp provides a standard position function which will meet your needs. In you case, you can call it by:
Code: Select all
(position 'a '(a b c d e))
-> 0
(position 'f '(a b c d e))
-> NIL
- Mon Nov 07, 2011 7:58 pm
- Forum: Common Lisp
- Topic: My first program in Lisp.
- Replies: 1
- Views: 3203
Re: My first program in Lisp.
Hi all. I am new to this forum and new to the world of lisp. I am doing my first program in lisp but having trouble to increment the count. I have posted my code. below. When I try to find the first position it gives me the correct one but when I try to get the second or third it give me 1 all the ...