Iterable processing functions
Project description
Installation
$ pip install les_iterables
Tests
Nope. Possibly this is simple enough that there are obviously no errors. I'll doubtless be proven wrong.
Examples
A collection of utility functions for processing iterable series which aren't in itertools or more-itertools. Some are little more than simple aliases with less confusing names.
>>> from les_iterables import *
>>> is_odd = lambda x: x%2 != 0
>>>
>>> list(retain_if(is_odd, range(10))
[1, 3, 5, 7, 9]
>>>
>>> list(reject_if(is_odd, range(10))
[0, 2, 4, 6, 8]
>>>
>>> list(retain_truthy(reject_if(is_odd, range(10)))
[2, 4, 6, 8]
CI/CD
$ bumpversion patch
$ git push origin master
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
les_iterables-0.8.5.tar.gz
(11.8 kB
view hashes)
Built Distribution
Close
Hashes for les_iterables-0.8.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32c8bebb94ad17e81608832bdf1359902eacdf7fa0685765a6a1875c670737ff |
|
MD5 | 618a5d26202020fbef9b93e4e69b3c02 |
|
BLAKE2b-256 | bcb6a2c84669e600a4471ed91cfb3a92405687a070221d75d15e062f18ad1f13 |