Update syntax highlighting, update allUnique

This commit is contained in:
Angelos Chalaris
2019-08-20 10:09:53 +03:00
parent 59fd9ad9a8
commit 0f405f0da9
35 changed files with 73 additions and 72 deletions

View File

@@ -6,11 +6,11 @@ Returns the difference between two iterables.
Use list comprehension to only keep values not contained in `b`.
```python
```py
def difference(a, b):
_b = set(b)
return [item for item in a if item not in _b]
```
``` python
```py
difference([1, 2, 3], [1, 2, 4]) # [3]
```