3 ms·
It would have been nice to get a better specification for the behavior you wanted. The fact that you called it "doTree" rather than "mapTree" implies that it i
by rpdillon 16y ago
It would have been nice to get a better specification for the behavior you wanted. The fact that you called it "doTree" rather than "mapTree" implies that it is a destructive operation, but it still would have been helpful for you to say so. I tend to think functionally, and my first reaction writing doTree was "Wait, what does this return?"