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.2.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.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sequence-extensions-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 ee319b569ab55928f294d70d90d88bf7e80cb5fc8ed8c5ef7db85325413a4bfe
MD5 36d3e5d37185fc4b8e6bdb16bf8bf117
BLAKE2b-256 f12c5afadd997f5b9b7535566403537dd0d400255e3c689e36ec21c41ada9788

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sequence_extensions-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 924b19b7130f5da9015fb30dff0e70807fce71ac85160893304df2155b3e70c5
MD5 e0f2ea4fa567fee6d430aabba8b9218d
BLAKE2b-256 b2fe7b8ea9e7686640c41747cb7657212cef51e9b840dd104f93df4c2571dc4a

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