Sotheonlythingthat's goingtochangefromheretothegeneraltreeisthatthesetwostepsareactuallygoingtobemergedinto a singlestep, andthat's goingtoberun a helperfunctionorjustrecursivelyonthechildren, allofthem.
Sofromhere, wecouldreturnanemptylistfromhere, andthendo a bunchofjoiningwiththerecursivecall, but I thinkit's probablyjusteasiertohave a variablelikethisresult, andthenwecanjustreturnthatouthere.
Withthisproblem, I thinkwecouldhavejustgottenthereturnvaluesfromhere, andthenjoinedtheminto a singlelist, butthatwouldn't havebeenasefficient, anditwouldhavebeenmorecomplicatedtocodethatupaswell.