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.2.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file listdiff-1.0.2.tar.gz
.
File metadata
- Download URL: listdiff-1.0.2.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Darwin/23.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a000f1087a2d02253d35a9fa25ab2c156df7608caf6da5220006ace9f5f990c |
|
MD5 | 816653b6758c8aeb1102982622569865 |
|
BLAKE2b-256 | 2e3d34635be44c0d0d2b519faf613ea52a18f964d6a591cb387e567bd1182a1c |
File details
Details for the file listdiff-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: listdiff-1.0.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.4 Darwin/23.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23a28d6e94949419b44c0dc96d9f8109cf865104b950d83bc8eae33c79da7044 |
|
MD5 | ceabdc72384c5e1a2a24982e6f5e3869 |
|
BLAKE2b-256 | 219a1a0c9e8bbc880ade56031d63f77fe4f3daa152425a81a5bbee3733a9e1f3 |