Search found 3 matches

by filippomazzetti
Tue Jun 22, 2010 8:43 am
Forum: Common Lisp
Topic: Summing sublists elements!!!
Replies: 4
Views: 4260

Re: Summing sublists elements!!!

Thank you for your reply, lispamour! :D
I will try it today and get back here! ;)
by filippomazzetti
Mon Jun 21, 2010 10:07 pm
Forum: Common Lisp
Topic: Summing sublists elements!!!
Replies: 4
Views: 4260

Re: Summing sublists elements!!!

Thank you for your reply, nuntius! :D I would like to avoid recursions for now (I'm afraid of getting lost). Could you please give me an example of how to apply your suggestions in a code? Please forgive my newbeness :? Thanks in advance! ;) I recommend using DO, DOLIST, or LOOP with APPLY. You coul...
by filippomazzetti
Mon Jun 21, 2010 5:50 pm
Forum: Common Lisp
Topic: Summing sublists elements!!!
Replies: 4
Views: 4260

Summing sublists elements!!!

Hi there! :)
I would like to know how can I sum the elements of several sublists while preserving them.
I have this: ((1 3 5) (2 4 1) (1 1)) and want to get this: ((9) (7) (2)).
What's the fastest way to do it? :roll:
Thanks in advance! ;)