Join Slack
Powered by
You could write `List<T>.firstHalf(): List&l...
# announcements
d
Derek Peirce
05/30/2020, 7:45 PM
You could write
List<T>.firstHalf(): List<T>
and
List<T>.secondHalf(): List<T>
extension methods that make use of
subList()
, be sure to add unit tests to ensure that the middle element is included in exactly one of them.
2
Views
Open in Slack
Previous
Next