Skip to main content

Providing some additional capabilities on top of itertools.

Project description

ben42code.myitertools

Providing some additional capabilities on top of itertools.

Example for ben42code.myitertools.islice_extended

islice_extended does support negative start/stop indexes and negative step.

from ben42code.myitertools import islice_extended

input = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
result = list(islice_extended(input, -1, -5, -1))
print(f"Result: {result}")

exit()

Ouput:

Result: [9, 8, 7, 6]

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

ben42code_myitertools-0.0.5.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ben42code_myitertools-0.0.5-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file ben42code_myitertools-0.0.5.tar.gz.

File metadata

  • Download URL: ben42code_myitertools-0.0.5.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for ben42code_myitertools-0.0.5.tar.gz
Algorithm Hash digest
SHA256 530046fcd9b14d20fca549bb9130710fa5604fe1c64787ded6d07c943788c68d
MD5 cd2da4b1c5d2c9a5f6fd5d3c0ea651fd
BLAKE2b-256 ee48d4a54956a67280d9892f16e081a6ee98f35e770ec9dec98ee5cfa4af0593

See more details on using hashes here.

File details

Details for the file ben42code_myitertools-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for ben42code_myitertools-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 241d040176d426c16289e46104b51f8d5c325a1692d5e1200270348f209b5aed
MD5 fd15f772145975f93f3d142fd2c4cb8f
BLAKE2b-256 1945e8487807eb7f2916f8021d0b4db8109752a89db7abff5c0e0fb8dd091b6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page