Recursive List Flattening

后端 未结 13 1343
既然无缘
既然无缘 2020-11-27 04:25

I could probably write this myself, but the specific way I\'m trying to accomplish it is throwing me off. I\'m trying to write a generic extension method similar to the oth

13条回答
  •  死守一世寂寞
    2020-11-27 05:30

    The SelectMany extension method does this already.

    Projects each element of a sequence to an IEnumerable<(Of <(T>)>) and flattens the resulting sequences into one sequence.

提交回复
热议问题