omlish 0.0.0.dev105__py3-none-any.whl → 0.0.0.dev107__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
omlish/__about__.py CHANGED
@@ -1,5 +1,5 @@
1
- __version__ = '0.0.0.dev105'
2
- __revision__ = '933f83fc2d561338d613829ed857297f339dcccd'
1
+ __version__ = '0.0.0.dev107'
2
+ __revision__ = '9f270e6dc323798d719017400a74df9173412f7b'
3
3
 
4
4
 
5
5
  #
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 Pipe([self], Bind(fn, *args, **kwargs))
18
+ return pipe(self, bind(fn, *args, **kwargs))
19
19
 
20
20
  def __or__(self, fn: ta.Callable[..., U]) -> 'Fn[U]':
21
- return self.pipe(fn)
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 Pipe([self], Apply(Bind(fn, *args, **kwargs)))
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.apply(fn)
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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: omlish
3
- Version: 0.0.0.dev105
3
+ Version: 0.0.0.dev107
4
4
  Summary: omlish
5
5
  Author: wrmsr
6
6
  License: BSD-3-Clause
@@ -1,5 +1,5 @@
1
1
  omlish/.manifests.json,sha256=hTFp9tvE72BxKloIq1s1SS0LRQlIsvMtO69Sbc47rKg,1704
2
- omlish/__about__.py,sha256=xFNYK26Wp3WqD30gedktn4EjWADk3X9F1PrEZx-EPqo,3352
2
+ omlish/__about__.py,sha256=cMIzyftUqzudI00DqKbFcTKOFEJwv0P276XfNYjZ07I,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=iwYC36Si1Sbh4ablcIdJFLo9lG3tjgA-bQTn3vsGypQ,2293
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.dev105.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
471
- omlish-0.0.0.dev105.dist-info/METADATA,sha256=paO_b2BZSAo_22qEH6jSRka_gSfZTTRW-xXYkMLbfss,4000
472
- omlish-0.0.0.dev105.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
473
- omlish-0.0.0.dev105.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
474
- omlish-0.0.0.dev105.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
475
- omlish-0.0.0.dev105.dist-info/RECORD,,
470
+ omlish-0.0.0.dev107.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
471
+ omlish-0.0.0.dev107.dist-info/METADATA,sha256=4y-O9HGxWaR8AFKM17OfN9pIvRTX2yJ3Ve3JDDc_B8c,4000
472
+ omlish-0.0.0.dev107.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
473
+ omlish-0.0.0.dev107.dist-info/entry_points.txt,sha256=Lt84WvRZJskWCAS7xnQGZIeVWksprtUHj0llrvVmod8,35
474
+ omlish-0.0.0.dev107.dist-info/top_level.txt,sha256=pePsKdLu7DvtUiecdYXJ78iO80uDNmBlqe-8hOzOmfs,7
475
+ omlish-0.0.0.dev107.dist-info/RECORD,,