Forum Discussion
Dicken
8 months agoPost Prodigy
Concatenate lists ;
Hi, This give the result i want but does anyone have ideas to make more dynamic or just better approach so start = {"A","B","C"} , result = {{ "A","C"} , {"A","B"} , {"AC"} , {"AB"} } ...
- 8 months ago
let Source = {"A", "B", "C"}, w = List.TransformMany( List.Skip(Source), (x) => {x, {x}}, (x, y) => if y is text then {Source{0} & y} else {Source{0}} & y ) in w
lbendlin
8 months agoSuper User
How is this a concatenation of lists?
- Dicken8 months agoPost Prodigy
Ok, you could say mapping, but as I take { "a","b","c"} and end up with { "a,b"} how is this not
conctenation?- lbendlin8 months agoSuper User
It might be a concatenation/permutation of the values in a list but not a concatenation of lists.
Maybe a more real world example would have helped to understand the ask (and the reason).