(defun add_twostring_length (mystr1 mystr2)
Error: Comma not inside a backquote.
[condition type: READER-ERROR]
First question is WHY WOULD YOU WANT THIS:
Best regards, Mark http://about.me/hijarian
--
You received this message because you are subscribed to the Google Groups "cl-test-grid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cl-test-grid...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to cl-test-grid+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "cl-test-grid" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cl-test-grid/oU2VVzwU0b4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cl-test-grid+unsubscribe@googlegroups.com.
OK, I must note that cl-test-grid is not a place to discuss
general lisp-related topics. I guess it's quite rude to Anton to
continue this offtopic, no matter how curious it may be.
To sum up, it all depends on what your actual input and expected output data is!
If you want to count the total length of the strings in the given
argument list, use something like this:
(defun total_strings_length (&rest input-strings)
(apply '+ (map 'length input-strings)))
Usage is like this:
? (total_strings_length "one" "two" "three")
11
Comma is absolutely unnecessary for you, just forget about it and/or remove it from the input at separate preprocessing stage. Creating a function which correctly parses calls like (add_twostring_length "cpp", "lisp") involves creating macros supporting this foreign syntax and I fail to understand what problem it will solve.
Best regards, Mark http://about.me/hijarian
To unsubscribe from this group and stop receiving emails from it, send an email to cl-test-grid...@googlegroups.com.