-
-
-# a few useful list routines that should probably live elsewhere
-Pluck
- [Documentation] Get the values of a specific key from a list of dictionaries
- [Arguments] ${k} ${l}
- @{names} = Evaluate filter(lambda v: v != None, [i.get('${k}', None) for i in ${l}])
- [Return] ${names}
-
-Subtract From List
- [Documentation] Remove the elements of the second argument from the first
- [Arguments] ${x} ${y}
- ${diff} = Run Keyword If ${y}
- ... Evaluate filter(lambda v: v not in ${y}, ${x})
- ... ELSE
- ... Set Variable ${x}
- [Return] ${diff}