I'm sure that I'm doing something dumb here but I ...
# rubber-duck
s
I'm sure that I'm doing something dumb here but I can't figure out what the issue is. I have a channel that I have constructed with
groupTuple
, that looks like:
[meta, [[file1a, file1b], [file2a, file2b], ... ]]
The second element here is an
ArrayBag
, in case that matters. I'm trying to return:
[meta, [file1a, file1b, file2a, file2b, ... ]]
I thought that
.map{meta, counts -> [meta, counts.collect()]}
would do that, but it doesn't seem to do anything
r
flatten.collect()
?
⭐ 1
s
Thanks Rike, that does it perfectly
m
Just need
flatten
. You're confusing the channel operators and collection functions.
collect
is unnecessary here.
🫠 1