[Python-ideas] Vectorization [was Re: Add list.join() please]
David Mertz
mertz at gnosis.cx
Sun Feb 3 18:54:37 EST 2019
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 <robertve92 at gmail.com
wrote:
>
>
> On Sat, 2 Feb 2019, 21:46 Brendan Barnwell <brenbarn at brenbarn.net 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
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20190203/2e39af4c/attachment.html>
More information about the Python-ideas
mailing list