Add all items in the list 'unique_items' from list L
(L, unique_items)
| 3 | map(L.remove, unique_items) |
| 4 | |
| 5 | def graft(L, unique_items): |
| 6 | """Add all items in the list 'unique_items' from list L""" |
| 7 | L.extend(unique_items) |
| 8 | |
| 9 | def unique(L1, L2): |
| 10 | """Return a list containing all items in 'L1' that are not in 'L2'""" |