3 ms·
> What are the practical applications of recursion though ? Traversing and transforming nested data structures. Just last month I had to write code that maps
by ajuc 6y ago
> What are the practical applications of recursion though ?
Traversing and transforming nested data structures.
Just last month I had to write code that maps flat data from one system into a nested structure required by another system.
We wrote mappings as map literals and the code traverses them creating a new instance of the map filling the leaves with data from the input row and running some business logic on it.