Add mapLeaves to Tree
jsbean opened this issue · comments
extension Tree {
func mapLeaves <T> (_ transform: (Leaf) -> T) -> Tree<Branch,T> {
...
}
}
Collection data structures
jsbean opened this issue · comments
extension Tree {
func mapLeaves <T> (_ transform: (Leaf) -> T) -> Tree<Branch,T> {
...
}
}