[SR-12375] Refactoring: Extract Method to Extension #54811
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
refactoring
Area → source tooling: refactoring
Additional Detail from JIRA
md5: a2f9fdaa45b849292dacbd0493741cee
Issue 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.
The text was updated successfully, but these errors were encountered: