Return just the paths with the given leaf name

myPruneFun(x, leafName)

Arguments

x

Tree node

leafName

Character string