I have a list of items. Each element is structured as follows:
('symbol "string" int-score)
List of examples:
(list (list 'object1 "wabadu" 0.5)
(list 'object2 "xezulu" 0.6)
(list 'object1 "yebasi" 0.5)
(list 'object1 "tesora" 0.2))
I want to get the maximum values ββfor a specific character. When I search with a symbol object2, I have to go back:
('object2 "xezulu" 0.6)
If I search with object1, I must return:
(('object1 "wabadu" 0.5) ('object1 "yebasi" 0.5))
I want to collect all the highest elements of a particular object. I can do this: suppose the list above is the list that is used below, and what I'm looking for object1. I can get all the elements of a specific object:
(loop for element in list
when (equal 'object1 (first element))
collect element)
I can also extract one of the highest list items:
(loop for element in list
when (equal 'object1 (first element))
maximize (third element))
. , , . collect maximize, . " "?