When writig complex Code FP-Style you may want to give the other Developers a better naming style to see what exactly is going on there without heading in every implementation.
The Input may have an complex reduce, map, compactMap, flatMap, sort, etc.
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Source Tooling | |Labels | Bug, Refactoring | |Assignee | None | |Priority | Medium | md5: a2f9fdaa45b849292dacbd0493741ceeIssue Description:
When writig complex Code FP-Style you may want to give the other Developers a better naming style to see what exactly is going on there without heading in every implementation.
The Input may have an complex reduce, map, compactMap, flatMap, sort, etc.
The goal would be to extract the reduce Method to a extension on sorted and name it properly:
The Code is extracted properly, easy to test and better to read for all devs.