Skip to main content

listmapzip

provides a few functions that should be part of python3

Install

pip install lmz
conda install -c conda-forge

Example

from lmz import Map,Zip,Filter,Grouper,Range,Transpose,Flatten,iterselect

# Map
>>> def add(x,y=4): return x+y
>>> Map(add, range(3),y=2)
[2, 3, 4]

>>> Grouper(range(10),3)
[(0, 1, 2), (3, 4, 5), (6, 7, 8), (9, None, None)]


# Flatten
>>> z=Grouper(range(10),3)
>>> Flatten(z)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, None, None]

>>> Transpose(z)
[(0, 3, 6, 9), (1, 4, 7, None), (2, 5, 8, None)]

>>> Range(z)
[0, 1, 2, 3]

>>> iterselect(iter(range(10)),4)
4

# Zip and Filter work as expected

Metadata

Release files for lmz 0.1.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lmz 0.1.20
File Size Uploaded
lmz-0.1.20.tar.gz 3.0 kB Details

Release files / lmz-0.1.20.tar.gz

Download URL lmz-0.1.20.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a00703578789fde3073836f9df7a2724713f42abd02e606339d7de8f1f433741
BLAKE2b-256 checksum
How to use checksums
e1d7455e3fd50711f8b9767a1c05d2b5349e94d90f2121141b96b773fde790d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.1.20 This release

1 release file

0.1.19

1 release file

0.1.18

1 release file

0.1.17

1 release file

0.1.16

1 release file

0.1.12

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.7

1 release file

0.1.5

1 release file

0.1.4

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page