Update difference.md
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
Returns the difference between two iterables.
|
||||
|
||||
Use list comprehension to only keep values not contained in `b`. Use set to test `in` in `O(1)` time.
|
||||
Use list comprehension to only keep values not contained in `b`.
|
||||
|
||||
```python
|
||||
def difference(a, b):
|
||||
|
||||
Reference in New Issue
Block a user