Skip to content

Les Itérables - a collection of utility functions for working with iterable series

License

Notifications You must be signed in to change notification settings

sixty-north/les_iterables

Repository files navigation

Les Itérables

Documentation Status

CI

codecov

Installation

$ pip install les_iterables

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 --follow-tags

About

Les Itérables - a collection of utility functions for working with iterable series

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages