A Late Introduction to Jools
I would still love to hear your feedback in the comments below. Enjoy!
A while back I wrote a small Java tools library called Jools. I never really presented it to “the world” (except for hosting it on Github. So I figured, now is my chance. Here are the features Jools provide:
Python-like Range Objects
This one is pretty straight forward
The cool thing about this class is that it also allows to get a permutation based on its index (calculated efficiently in
O(n) time, when
n is the number of items (not permutation)):
Iterable Wrapper For Looping with Indices
Similar to Python’s enumerate function:
That’s it. Not a big library, as I said, but it’s been helpful to me, and I hope it can be helpful to you as well!Discuss this post at the comment section below.
Follow me on Twitter , Facebook or Google+