Search found 3 matches

by djtlg
Sat Sep 28, 2013 9:37 pm
Forum: Homework
Topic: counting non-numeric characters.
Replies: 5
Views: 15359

Re: counting non-numeric characters.

Hey thank you very much. Thanks to u i started to find my way around Lisp.
I also have very short question. How would u print 4 symbols without any parentheses around them. I couldn't figure out. Basically i want to print CANNOT COMPUTE DOT PRODUCT but every word has to be a symbol.
by djtlg
Sat Sep 28, 2013 12:17 am
Forum: Homework
Topic: counting non-numeric characters.
Replies: 5
Views: 15359

Re: counting non-numeric characters.

Thank you very much for the help. I almost got the code working. I still have one problem and i can't seem the solve. (defun notnums(A) (if (endp A) 0 (if (numberp(first A)) (notnums(rest A)) (if (listp(first A)) (notnums(first A)) (+ 1 (notnums(rest A))) ) ) ) ) This is my current code.It works gre...
by djtlg
Fri Sep 27, 2013 1:45 pm
Forum: Homework
Topic: counting non-numeric characters.
Replies: 5
Views: 15359

counting non-numeric characters.

Hello everyone I am very very new to Lisp. We only had 3 cases so far on lisp. This is out second assignment and i am a bit lost. Any help is appreciated. Please keep in my i have to do everthing with recursion. I can't use any variables except for the parameters. Write a function called "notnu...