Description
The mapChildren method in the TreeNode class is commonly used. In this method, there's a if statement checking non-empty children. However, there's a cached lazy val containsChild, which avoids unnecessary computation since this containsChild is used in other methods anyway.
Attachments
Issue Links
- links to