• [Python-announce] friendly-sequences-1.2.0 released

    From Artem Zhukov@iam@zhukovgreen.pro to comp.lang.python.announce on Thu Apr 18 18:27:13 2024
    From Newsgroup: comp.lang.python.announce

    Hi all,


    For those, who like functional programming, this library [1] provides the following way of functional composition:

    ```python
    from friendly_sequences import Seq

    assert (
    Seq[int]((1, 2))
    .zip(Seq[int]((3, 4)))
    .flat_map(lambda x: x + 1)
    .filter(lambda x: x != 2)
    .sort()
    .map(str)
    .fold(lambda left, right: f"{left}{right}", "")
    ) == “345"
    ```

    It depends only on "attrs>=21.3.0”


    [1] https://github.com/zhukovgreen/friendly-sequences

    --
    zhukovgreen,

    Data Engineer @Paylocity
    https://github.com/zhukovgreen

    --- Synchronet 3.20a-Linux NewsLink 1.114