Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

We don't really understand it, so we'll give it to the programmers.


devel / comp.lang.python.announce / [Python-announce] friendly-sequences-1.2.0 released

SubjectAuthor
o [Python-announce] friendly-sequences-1.2.0 releasedArtem Zhukov

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

<BD658A97-C202-47D3-B98A-3F1F53F7444E@zhukovgreen.pro>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=10175&group=comp.lang.python.announce#10175

  copy link   Newsgroups: comp.lang.python.announce
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!not-for-mail
From: iam...@zhukovgreen.pro (Artem Zhukov)
Newsgroups: comp.lang.python.announce
Subject: [Python-announce] friendly-sequences-1.2.0 released
Date: Thu, 18 Apr 2024 18:27:13 +0200
Lines: 11
Approved: python-announce-list@python.org
Message-ID: <BD658A97-C202-47D3-B98A-3F1F53F7444E@zhukovgreen.pro>
Reply-To: python-list@python.org
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.500.171.1.1\))
Content-Type: text/plain;
charset=utf-8
Content-Transfer-Encoding: base64
X-Trace: news.uni-berlin.de rEnfetxr/BhQ3WYpAApDxQ83n52qiOJBYYea8AoOXmbw==
Cancel-Lock: sha1:4n8yJzD+Y/YjVjRVpeGI6ga8/ek= sha256:YbKw4kBKD2lFFjUvFYd5bwaca0Qeo7Jjvq+gQH+FEVE=
Authentication-Results: mail.python.org; dkim=pass
reason="2048-bit key; unprotected key"
header.d=zhukovgreen.pro header.i=@zhukovgreen.pro
header.b=MXkL904L; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status: OK 0.011
X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'engineer': 0.02; 'url-
ip:140.82/16': 0.03; 'received:pro': 0.09; 'skip:` 10': 0.09;
'to:addr:python-announce-list': 0.09; 'url:github': 0.14;
'import': 0.15; 'url-ip:140/8': 0.15; 'assert': 0.16; 'all,':
0.20; 'depends': 0.25; 'library': 0.26; 'programming,': 0.26;
'skip:" 20': 0.34; 'following': 0.35; 'way': 0.38; 'received:116':
0.64; '[1]': 0.67; 'functional': 0.69; '8bit%:18': 0.69; '"")':
0.84; 'those,': 0.84
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zhukovgreen.pro;
s=dkim; t=1713457650; h=from:subject:date:message-id:to:mime-version:content-type;
bh=/Ukv01luaoCDziQDlVhV0lBb6+13bpeA5/VOaEAwJjg=;
b=MXkL904LddtV6o24EW0mSVESrAyk6OBA8p7ojyAXOpQniC80mCVY/8BqbJR2f+wM1H7BXa
rBVCTkgvOM8AT/E0mj/ALZkmKll/7JYDnY7FSuq6SwQV2W2cLO+nnD9LDlOYWHUw7I1Yqh
2O4C/VIFccVtxkNjNN7SyfYBVDNCV/XRA04mz4GeiyLbugBcoXdrmXq74VyBtu+oHx+O09
KlIjmzhySM7GMnLCYNngijaMk6YI+dyk2+y0AiWF1kSU9NSPOyVxDRUiwqix5fjYkVapU+
zXoUOHMpOgc+zmsEuFO+d4aKCbp7sjJla21U8oIwdqxGBCk4ikvjUTJKDG9row==
X-Mailer: Apple Mail (2.3774.500.171.1.1)
X-Last-TLS-Session-Version: TLSv1.2
X-MailFrom: iam@zhukovgreen.pro
X-Mailman-Rule-Hits: emergency
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved
Message-ID-Hash: XCYYLHYWV7YCNMZ4ZLFVXV6OMVSGNVA6
X-Message-ID-Hash: XCYYLHYWV7YCNMZ4ZLFVXV6OMVSGNVA6
X-Mailman-Approved-At: Thu, 18 Apr 2024 12:49:41 -0400
X-Content-Filtered-By: Mailman/MimeDel 3.3.10b1
X-Mailman-Version: 3.3.10b1
Precedence: list
List-Id: Announcement-only list for the Python programming language <python-announce-list.python.org>
Archived-At: <https://mail.python.org/archives/list/python-announce-list@python.org/message/XCYYLHYWV7YCNMZ4ZLFVXV6OMVSGNVA6/>
List-Archive: <https://mail.python.org/archives/list/python-announce-list@python.org/>
List-Help: <mailto:python-announce-list-request@python.org?subject=help>
List-Owner: <mailto:python-announce-list-owner@python.org>
List-Post: <mailto:python-announce-list@python.org>
List-Subscribe: <mailto:python-announce-list-join@python.org>
List-Unsubscribe: <mailto:python-announce-list-leave@python.org>
 by: Artem Zhukov - Thu, 18 Apr 2024 16:27 UTC

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


devel / comp.lang.python.announce / [Python-announce] friendly-sequences-1.2.0 released

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor