You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would a zipWithIndexAndSize() make sense for you or is there a way around that I'm not seeing right now?
The fact that there is a keyword and in your method name hints at this practice not scaling at all in terms of API design. If we did this here, then we'd have to do it everywhere, as someone might eventually request crossJoinAndSize() or flatMapAndSize(), or just plain zipWithSize()
Window functions! Seq has window functions! I cant see this here. And I couldn't see it on your github page. I found your blog post after googling it. How did I not know this? Why isn't that advertised on your github page?
I'm still reluctant to advertise it too much, because the implementation is not optimised as much as it could have been. Once you use window frames, algorithms tend to be O(n^2) instead of O(n log n).
Sometimes I need to interrupt my methodchaining to switch behaviours depending on the size of my sequence.
Would a
zipWithIndexAndSize()
make sense for you or is there a way around that I'm not seeing right now?It could be like this
Tuple<T,Tuple<Long,Long>> zipWithIndexAndSize()
The text was updated successfully, but these errors were encountered: