I will try it today and get back here!
Search found 3 matches
- Tue Jun 22, 2010 8:43 am
- Forum: Common Lisp
- Topic: Summing sublists elements!!!
- Replies: 4
- Views: 4313
Re: Summing sublists elements!!!
Thank you for your reply, lispamour! 
I will try it today and get back here!
I will try it today and get back here!
- Mon Jun 21, 2010 10:07 pm
- Forum: Common Lisp
- Topic: Summing sublists elements!!!
- Replies: 4
- Views: 4313
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...
- Mon Jun 21, 2010 5:50 pm
- Forum: Common Lisp
- Topic: Summing sublists elements!!!
- Replies: 4
- Views: 4313
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?
Thanks in advance!
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?
Thanks in advance!