On python, is there any way to chain functional commands? Eg in js: result= list.filter(bla).map(bla)?
-
-
Replying to @AndyTWoods
If I understand your question (exhausted right now), it's the same in Python as your example, no?
1 reply 0 retweets 0 likes -
Replying to @o_guest
Gosh I always thought you had to do this in python filter(map(bla, f), f). I've never used functional stuff in python. Super useful in js I find tho :)
3 replies 0 retweets 1 like -
-
Replying to @AndyTWoods
I could be wrong. Hopefully somebody who's more awake can say more. I'll also try in a bit once I'm less sleepy.
1 reply 0 retweets 1 like -
Replying to @o_guest @AndyTWoods
Does this help?https://stackoverflow.com/questions/27222193/clean-code-for-sequence-of-map-filter-reduce-functions …
1 reply 1 retweet 2 likes -
Replying to @o_guest
Super nice! Thanks! Think still will port over that package as I want functional stuff for maps too.
1 reply 0 retweets 1 like
I actually don't use lambda stuff enough /ever. It's really useful sometimes. 
-
-
Replying to @o_guest
Me too. My Oldies got my this for Xmas so looking forward to figuring out the cool stuff I'm missing https://dbader.org/products/python-tricks-book/ …
1 reply 1 retweet 2 likes - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.