10 lines
149 B
Python
10 lines
149 B
Python
|
|
let candidates = {'foo','bar','baz'}
|
|
|
|
let values = {
|
|
x for x in ['foo','bar','baz','qux']
|
|
if x in candidates
|
|
}
|
|
|
|
print(sorted(list(values)))
|