New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sliced Iterator similar to Scala Iterator.slice method #1188
Comments
@paulodamaso/z please, pay attention to this issue |
@fanifieiev/z this project will fix the problem faster if you donate a few dollars to it; just click here and pay via Stripe, it's very fast, convenient and appreciated; thanks a lot! |
@fanifieiev I'd like it, BUT: If we look carefully we could compose these decorators using the new proposed
So let's do it: create the P.S.: Let's create it for all interfaces: Collection, Iterable, Iterator, etc |
@0crat in |
@0crat assign @fanifieiev |
@paulodamaso Job #1188 is already in scope |
@paulodamaso The job #1188 assigned to @fanifieiev/z, here is why; the budget is 30 minutes, see §4; please, read §8 and §9; if the task is not clear, read this and this; @fanifieiev/z is not a member of this project yet, but they can request to join, as §1 explains; there will be no monetary reward for this job |
@paulodamaso Thanks for your contribution, @fanifieiev/z! If you would be a member of the project, you would now earn +15 reputation points, as explained in §29. You can join and apply to it, see §2. |
Manual assignment of issues is discouraged, see §19: -5 point(s) just awarded to @paulodamaso/z |
It is strongly discouraged to assign jobs to their creators, see §19: -15 point(s) just awarded to @paulodamaso/z |
@fanifieiev @paulodamaso II'm sorry, bu I didn't like this API. WDYT something like:
|
@fabriciofx Is your concern related to the constructor parameter names? |
@fabriciofx What's the problem about that? |
@paulodamaso I have already refactored the api, the changes are in there, in PR |
@paulodamaso It didn't follow the Cactoos API pattern and IMHO it's more clear now. Ah, in time: I'm not the |
@fanifieiev Can't understand "review", try one of these:
|
@0crat status |
@fabriciofx This is what I know about this job in C63314D6Z, as in §32:
|
@0crat status |
@fanifieiev This is what I know about this job in C63314D6Z, as in §32:
|
@paulodamaso
|
@fanifieiev You're banned from DEV role in the issue because you have opened it. Zerocrat does not assign issues to its creators. Your changes are being evaluated by @victornoel in #1189 |
|
@fanifieiev You need to join zerocracy in order to get reputation points and to be paid for jobs that have monetary rewards, please read the policy and join the platform in the link there. Either way, your PR is being reviewed and will be merged as soon as @victornoel finishes the review |
@fanifieiev 4 puzzles #1191, #1192, #1193, #1194 are still not solved. |
@fanifieiev 3 puzzles #1191, #1193, #1194 are still not solved; solved: #1192. |
@fanifieiev this should be closed now, the tickets created by 0pdd will take over now for the rest of the work. |
@victornoel Should I close it manually? |
@fanifieiev yes, that's what I meant :) |
@0crat status |
@fanifieiev This is what I know about this job in C63314D6Z, as in §32:
|
Work is done!!! |
Job #1188 is not in the agenda of @fanifieiev/z, can't retrieve data and time of add |
Job #1188 is not in the agenda of @fanifieiev/z, can't inspect |
@sereshqua/z please review this job completed by @fanifieiev/z, as in §30; the job will be fully closed and all payments will be made when the quality review is completed |
The job #1188 is now out of scope |
|
@fanifieiev ping |
|
|
@0crat quality acceptable |
Order was finished, quality is "acceptable": +30 point(s) just awarded to @fanifieiev/z |
Quality review completed: +4 point(s) just awarded to @sereshqua/z |
@sereshqua Got it, will do next time. |
@fanifieiev the puzzle #1194 is still not solved; solved: #1191, #1192, #1193. |
@fanifieiev all 4 puzzles are solved here: #1191, #1192, #1193, #1194. |
I could not find any implementation of sliced iterator, so I think it would be nice to have it in place.
Constructor:
public Sliced(final int fromIndex, final Iterator<T> iterator, final int limit)
An example is:
Iterator<Integer> sliced = new Sliced<>(2, new IteratorOf<>(1,2,3,4,5,6), 2);
that would return a slice of 2 elements starting from index 2, which will result in [3, 4].
PS: I have already implemented one and would like to create PR after this issue is created.
The text was updated successfully, but these errors were encountered: