<div dir="auto"><div>How would you spell these with funcoperators?</div><div dir="auto"><br></div><div dir="auto">v.replace("a","b").upper().count("B")</div><div dir="auto">vec1.replace("PLACEHOLDER", vec2)<br>concat = vec1 + vec2<br><br><div class="gmail_quote" dir="auto"><div dir="ltr">On Sun, Feb 3, 2019, 6:40 PM Robert Vanden Eynde <<a href="mailto:robertve92@gmail.com" target="_blank" rel="noreferrer">robertve92@gmail.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><br><br><div class="gmail_quote" dir="auto"><div dir="ltr">On Sat, 2 Feb 2019, 21:46 Brendan Barnwell <<a href="mailto:brenbarn@brenbarn.net" rel="noreferrer noreferrer" target="_blank">brenbarn@brenbarn.net</a> wrote:</div></div><div dir="auto"><br></div><div dir="auto">Yeah, it's called pip install funcoperators :</div><div class="gmail_quote" dir="auto"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> some_list @ str.lower @ tokenize @ remove_stopwords<br></blockquote></div><div dir="auto"><br></div><div dir="auto">→ <span style="font-family:sans-serif">some_list @ to(str.lower) @ to(tokenize) @ to(remove_stopwords)</span></div><div dir="auto"><span style="font-family:sans-serif"><br></span></div><div dir="auto"><span style="font-family:sans-serif">Where from funcoperators import postfix as to</span></div></div>
_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" rel="noreferrer noreferrer" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" rel="noreferrer noreferrer noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" rel="noreferrer noreferrer noreferrer" target="_blank">http://python.org/psf/codeofconduct/</a><br>
</blockquote></div></div></div>