Data.Tree I built with fold and I want eventually to unfold it, but, before doing so, I just want to restrict the number of layers from the root, I don't want the whole tree:
I want to truncate to N levels
I was expecting some cool function like takeLevels as the take from List, but there's none.
There's a way to achieve this and keep the Tree structure?? (Since it's easier to fold)
🙇
i don't think ppl actually use this package very much
Обсуждают сегодня