How would you spell these with funcoperators?
v.replace("a","b").upper().count("B")
vec1.replace("PLACEHOLDER", vec2)
concat = vec1 + vec2
On Sun, Feb 3, 2019, 6:40 PM Robert Vanden Eynde <[email protected]
wrote:
>
>
> On Sat, 2 Feb 2019, 21:46 Brendan Barnwell <[email protected] wrote:
>
> Yeah, it's called pip install funcoperators :
>
>> some_list @ str.lower @ tokenize @ remove_stopwords
>>
>
> → some_list @ to(str.lower) @ to(tokenize) @ to(remove_stopwords)
>
> Where from funcoperators import postfix as to
> _______________________________________________
> Python-ideas mailing list
> [email protected]
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/