htsjdk icon indicating copy to clipboard operation
htsjdk copied to clipboard

Add peek method for SortingLongCollections

Open PramodRaoB opened this issue 1 year ago • 1 comments

Description of the issue:

Currently, the SortingLongCollection does not provide a method to peek the value of the top-most element. This makes it impossible to perform some processing on-top of such collections such as a k-way merge which require a non-destructive peek. Adding that feature should be trivial and not break existing code.

I could submit a quick PR if this feature is approved.

PramodRaoB avatar Dec 17 '24 07:12 PramodRaoB

@PramodRaoB That sounds very reasonable. I will review it if you submit a PR.

lbergelson avatar Apr 08 '25 19:04 lbergelson