Skip to main content

Higher order functions extension functins

Project description

sequence_extensions

provides high order functions as extesions for the custom list class in python

l = ext_list([1, 2, 3, 4])

l.map(lambda x: x*2)
[2, 4, 6, 8]

l.filter(lambda x: x%2==0)
[2, 4]

l.for_each(lambda x: print(x))
1
2
3
4

l.first(lambda x: x%2==0)
2

l.last(lambda x: x%2==0)
4

l.to_strings()
["1", "2", "3", "4"]

l.to_string()
"1, 2, 3, 4"

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

sequence-extensions-0.1.3.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

sequence_extensions-0.1.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file sequence-extensions-0.1.3.tar.gz.

File metadata

  • Download URL: sequence-extensions-0.1.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for sequence-extensions-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b8bd4851ee31ffc94286b4ebf270cfcffe5a548518d57d3eaa21189b64f416d2
MD5 c2b0eb7d921391e0bffca0419946ea0f
BLAKE2b-256 2224407d24ee8a404e54f4fe5d04c32c0e586eb3af4dcc23bdb3dd534ac80779

See more details on using hashes here.

File details

Details for the file sequence_extensions-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sequence_extensions-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 58031425197dc6bde7c056b202b7e8b958d0ca87e5d55d6630c984ab0eb148ff
MD5 bb4e0a2290cd82e54c3ec0f7f02fd128
BLAKE2b-256 b732e5c9c7532890f6f12b9670d6f49dcd9c77f6a2004eb8aa960d60f5b0011f

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