Diff 2 python lists using a given key
Project description
Overview
Diff 2 python lists using a given key
Usage
listA = [3, 2, 1]
listB = [5, 4, 3]
inA, inBoth, inB = DiffUnsortedLists(listA=listA, listB=listB, keyA=lambda x: x, keyB=lambda x: x)
assert inA == [1, 2]
assert inBoth == [(3, 3)]
assert inB == [4, 5]
listA = [1, 2, 3]
listB = [3, 4, 5]
resultB = DiffListsByKey(iterA=iter(listA), iterB=iter(listB), keyA=lambda x: x, keyB=lambda x: x)
assert inA == [1, 2]
assert inBoth == [(3, 3)]
assert inB == [4, 5]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
listdiff-1.0.0.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file listdiff-1.0.0.tar.gz.
File metadata
- Download URL: listdiff-1.0.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.1 Darwin/21.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b8596cd9ade684e3ae94b56decf02e70c24e708a2a8e8049ea6a7e11fd99057
|
|
| MD5 |
a3883846cfb91a6bc1b6db6184f84870
|
|
| BLAKE2b-256 |
9abb3be7190a97af73e1d4c3a7f99a57847b9a10f7486afb0e5831ffb7282e96
|
File details
Details for the file listdiff-1.0.0-py3-none-any.whl.
File metadata
- Download URL: listdiff-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.9.1 Darwin/21.2.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
77877062e27bd229ec9721cc06127ae0cc081be9d66b4718621303b9d3a351fe
|
|
| MD5 |
50b96974183267ec838741cf3c491dcb
|
|
| BLAKE2b-256 |
1ef6e6014b94a122a11aeacbfc286fb16dd5dde93738ef20a27bbef15c4d1159
|