I have an `Item`. `Item` has a list of another `It...
# announcements
f
I have an
Item
.
Item
has a list of another
Item
. Is there a way to recursively collect all subitems for a given item into a flat list?
d
forcelain:
item.list.flatMap { it.list }
f
Thanks, I will try
k
is that going to recurse? It looks like it only goes a layer deep
d
True, I missed that. You could easily add that with a method in Item