Skip to content
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

Implement sliding2 Array Operation #20

Open
5 tasks
kappsegla opened this issue Feb 4, 2025 · 0 comments · May be fixed by #53
Open
5 tasks

Implement sliding2 Array Operation #20

kappsegla opened this issue Feb 4, 2025 · 0 comments · May be fixed by #53
Assignees
Labels
feature New feature or request

Comments

@kappsegla
Copy link
Contributor

kappsegla commented Feb 4, 2025

Description

Implement sliding window operation in org.fungover.breeze.util.Arrays to create pairs of adjacent elements.

Implementation Requirements

public static <T> ImmutableList<Tuple2<T, T>> sliding2(T[] array)
  • Creates pairs of adjacent elements
  • Returns ImmutableList of Tuple2
  • Handles arrays shorter than 2 elements
  • Thread-safe implementation

Test Cases

  • Normal array with multiple elements
  • Two-element array
  • Single-element array
  • Empty array
  • Array with null elements
  • Large arrays (performance)

Acceptance Criteria

  • Method implemented
  • 100% test coverage
  • Performance benchmarks
  • Documentation complete
  • Collection variants added
@kappsegla kappsegla added the feature New feature or request label Feb 4, 2025
@BenjaO4 BenjaO4 self-assigned this Feb 7, 2025
@Abdii111 Abdii111 self-assigned this Feb 8, 2025
@BenjaO4 BenjaO4 linked a pull request Feb 11, 2025 that will close this issue
@BenjaO4 BenjaO4 linked a pull request Feb 11, 2025 that will close this issue
@Abdii111 Abdii111 removed their assignment Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants