omlish 0.0.0.dev105__py3-none-any.whl → 0.0.0.dev106__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- omlish/__about__.py +2 -2
- omlish/fnpipes.py +10 -4
- {omlish-0.0.0.dev105.dist-info → omlish-0.0.0.dev106.dist-info}/METADATA +1 -1
- {omlish-0.0.0.dev105.dist-info → omlish-0.0.0.dev106.dist-info}/RECORD +8 -8
- {omlish-0.0.0.dev105.dist-info → omlish-0.0.0.dev106.dist-info}/LICENSE +0 -0
- {omlish-0.0.0.dev105.dist-info → omlish-0.0.0.dev106.dist-info}/WHEEL +0 -0
- {omlish-0.0.0.dev105.dist-info → omlish-0.0.0.dev106.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev105.dist-info → omlish-0.0.0.dev106.dist-info}/top_level.txt +0 -0
omlish/__about__.py
CHANGED
omlish/fnpipes.py
CHANGED
@@ -15,16 +15,22 @@ class Fn(abc.ABC, ta.Generic[T]):
|
|
15
15
|
raise NotImplementedError
|
16
16
|
|
17
17
|
def pipe(self, fn: ta.Callable[..., U], *args: ta.Any, **kwargs: ta.Any) -> 'Fn[U]':
|
18
|
-
return
|
18
|
+
return pipe(self, bind(fn, *args, **kwargs))
|
19
19
|
|
20
20
|
def __or__(self, fn: ta.Callable[..., U]) -> 'Fn[U]':
|
21
|
-
return
|
21
|
+
return pipe(self, fn)
|
22
|
+
|
23
|
+
def __ror__(self, fn: ta.Callable[..., U]) -> 'Fn[U]':
|
24
|
+
return pipe(fn, self)
|
22
25
|
|
23
26
|
def apply(self, fn: ta.Callable[[T], ta.Any], *args: ta.Any, **kwargs: ta.Any) -> 'Fn[T]':
|
24
|
-
return
|
27
|
+
return pipe(self, apply(bind(fn, *args, **kwargs)))
|
25
28
|
|
26
29
|
def __and__(self, fn: ta.Callable[[T], ta.Any]) -> 'Fn[T]':
|
27
|
-
return self
|
30
|
+
return pipe(self, apply(fn))
|
31
|
+
|
32
|
+
def __rand__(self, fn: ta.Callable[[T], ta.Any]) -> 'Fn[T]':
|
33
|
+
return pipe(fn, apply(self))
|
28
34
|
|
29
35
|
|
30
36
|
##
|
@@ -1,5 +1,5 @@
|
|
1
1
|
omlish/.manifests.json,sha256=hTFp9tvE72BxKloIq1s1SS0LRQlIsvMtO69Sbc47rKg,1704
|
2
|
-
omlish/__about__.py,sha256=
|
2
|
+
omlish/__about__.py,sha256=McJSzYz1d7gzOaA5Xsu61psyIr5ltfdMqb3lcRFGRBY,3352
|
3
3
|
omlish/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
omlish/argparse.py,sha256=Dc73G8lyoQBLvXhMYUbzQUh4SJu_OTvKUXjSUxq_ang,7499
|
5
5
|
omlish/c3.py,sha256=4vogWgwPb8TbNS2KkZxpoWbwjj7MuHG2lQG-hdtkvjI,8062
|
@@ -9,7 +9,7 @@ omlish/datetimes.py,sha256=HajeM1kBvwlTa-uR1TTZHmZ3zTPnnUr1uGGQhiO1XQ0,2152
|
|
9
9
|
omlish/defs.py,sha256=T3bq_7h_tO3nDB5RAFBn7DkdeQgqheXzkFColbOHZko,4890
|
10
10
|
omlish/dynamic.py,sha256=35C_cCX_Vq2HrHzGk5T-zbrMvmUdiIiwDzDNixczoDo,6541
|
11
11
|
omlish/fnpairs.py,sha256=hLCjbwZ0cVGPmTaw_NMpMau0KpjYEB6kKzI_mNgoKnk,10778
|
12
|
-
omlish/fnpipes.py,sha256=
|
12
|
+
omlish/fnpipes.py,sha256=E7Sz8Aj8ke_vCs5AMNwg1I36kRdHVGTnzxVQaDyn43U,2490
|
13
13
|
omlish/genmachine.py,sha256=RlU-y_dt2nRdvoo7Z3HsUELlBn3KuyI4qUnqLVbChRI,2450
|
14
14
|
omlish/iterators.py,sha256=GGLC7RIT86uXMjhIIIqnff_Iu5SI_b9rXYywYGFyzmo,7292
|
15
15
|
omlish/libc.py,sha256=8r7Ejyhttk9ruCfBkxNTrlzir5WPbDE2vmY7VPlceMA,15362
|
@@ -467,9 +467,9 @@ omlish/text/glyphsplit.py,sha256=Ug-dPRO7x-OrNNr8g1y6DotSZ2KH0S-VcOmUobwa4B0,329
|
|
467
467
|
omlish/text/indent.py,sha256=6Jj6TFY9unaPa4xPzrnZemJ-fHsV53IamP93XGjSUHs,1274
|
468
468
|
omlish/text/parts.py,sha256=7vPF1aTZdvLVYJ4EwBZVzRSy8XB3YqPd7JwEnNGGAOo,6495
|
469
469
|
omlish/text/random.py,sha256=jNWpqiaKjKyTdMXC-pWAsSC10AAP-cmRRPVhm59ZWLk,194
|
470
|
-
omlish-0.0.0.
|
471
|
-
omlish-0.0.0.
|
472
|
-
omlish-0.0.0.
|
473
|
-
omlish-0.0.0.
|
474
|
-
omlish-0.0.0.
|
475
|
-
omlish-0.0.0.
|
470
|
+
omlish-0.0.0.dev106.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
471
|
+
omlish-0.0.0.dev106.dist-info/METADATA,sha256=DxtWLmKCma2sEDv6tyEdzbr7auNBmRKKji3FPMSOzN4,4000
|
472
|
+
omlish-0.0.0.dev106.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
473
|
+
omlish-0.0.0.dev106.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
|
474
|
+
omlish-0.0.0.dev106.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
|
475
|
+
omlish-0.0.0.dev106.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|