I have a list of lines like this:
{"/ foo", "/ bar", "/ foo / admin", "/ foo / cust", "/ bar / erp", "/ bar / erp / call", "/ foo / cust / profile"}
How to create a path of a tree of constructive lines? Or Where can I find a library that can solve my problems?
the other part is that I want to know how to quote by structure in order to get the data I need (for example, the node tree will contain a string path, but it may also contain a collection of an object with a path attribute), so you can understand that you need complex data structure
A tree can be represented as follows:
- / -- /foo -- -- /foo/admin -- -- /foo/cust -- -- -- /foo/cust/profile -- /bar -- -- /bar/erp -- -- -- /bar/erp/call
thanks
source share