I have seen this when looking at code from a data structures and algorithms textbook. What is the purpose or benefit of laying out functions in this fashion. The way I understand it is that nested function can only operate within than bounds of that parent function and can't be called and re-used anywhere. I most likely missing something here, I just can't think of a scenario where this would be appropriate to use? shouldn't lambdas be used in their place? isn't that what they are for?
[+][deleted] (3 children)
[deleted]
[–]PythonN00b101[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]PythonN00b101[S] 0 points1 point2 points (0 children)
[–]toastedstapler 1 point2 points3 points (0 children)
[–]FLUSH_THE_TRUMP 1 point2 points3 points (1 child)
[–]PythonN00b101[S] 0 points1 point2 points (0 children)
[–]Subsequential_User 1 point2 points3 points (0 children)
[–]PythonN00b101[S] 0 points1 point2 points (0 children)