2
Contributors
4
Replies
6
Views
6 Years
Discussion Span
Last Post by pyTony
0

For me looks simple case of applying car to cdr of each sublist before calling the BFS. As it is one debuged group of code I would leave it alone as I understnd that the result would suffice to you without the weights.

0

Yea I agree. Just not sure how to implement. I know I'll have to take the car of each individual list (a (b 1) (c 3)), to get the 'a', then take the car of the sublists and append it. I'm just not sure of the most efficient way to do it.

0

I am little rusty (about 20 years) in Lisp but in basic functions MAPCAR could be helpfull:

(MAPCAR 'CDR '((A B) (C D)))                 

((B) (D))
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.