difference_by
This commit is contained in:
@ -6,6 +6,7 @@ def difference_by(a, b, fn):
|
|||||||
```
|
```
|
||||||
|
|
||||||
```python
|
```python
|
||||||
difference_by([2.1, 1.2], [2.3, 3.4],floor); // [1.2]
|
from math import floor
|
||||||
difference_by([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], lambda v : v['x']); // [ { x: 2 } ]
|
difference_by([2.1, 1.2], [2.3, 3.4],floor) # [1.2]
|
||||||
|
difference_by([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], lambda v : v['x']) # [ { x: 2 } ]
|
||||||
```
|
```
|
||||||
Reference in New Issue
Block a user