semvec/pypi-packages huggingface dataset:
les-iterables 1.15.0
Iterable processing functions
License: MIT License
Keywords: iterators iterables

# ![Les Itérables](docs/source/_static/les_iterables.png)

[![Documentation Status](https://readthedocs.org/projects/les-iterables/badge/?version=latest)](https://les-iterables.readthedocs.io/en/latest/?badge=latest)

![CI](https://github.com/sixty-north/les_iterables/actions/workflows/actions.yml/badge.svg)


[![codecov](https://codecov.io/gh/sixty-north/les_iterables/branch/master/graph/badge.svg?token=66QU3UW6N3)](https://codecov.io/gh/sixty-north/les_iterables)

## Installation

    $ pip install les_iterables


## Examples

A collection of utility functions for processing iterable series which
aren't in [itertools](https://docs.python.org/3/library/itertools.html) or [more-itertools](https://more-itertools.readthedocs.io). 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
MIT License

Copyright (c) 2020 Sixty North AS

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.