Hi, why is the case that when I do `channel.unique...
# nostupidquestions
n
Hi, why is the case that when I do
channel.unique().view {it -> "UNIQUE: $it}
what comes out is:
Copy code
[UNIQUE: workDirT960_ont.fastplong.json, workDirT960_ont.fastplong.json, workDirT960_ont.fastplong.json, workDirT960_ont.fastplong.json, workDirT960_ont.fastplong.json, workDirT960_ont.fastplong.json, workDirT960_ont.fastplong.json]
And not the unique items, i.e.
Copy code
[workDirT960_ont.fastplong.json]
m
What's odd to me is that the
UNIQUE:
is inside the list. Perhaps try changing
it
to something else. It's definitely a confusing output.
n
That was an error I introduced when cleaning the paths; it is is UNIQUE: [<list>]
m
So
it
is receiving a
List
?
n
No, what I mean: is it looks like:
UNIQUE: [<workDir>T960_ont.fastplong.json, <workDir>T960_ont.fastplong.json, <workDir>T960_ont.fastplong.json, <workDir>T960_ont.fastplong.json, <workDir>T960_ont.fastplong.json, <workDir>T960_ont.fastplong.json, <workDir>T960_ont.fastplong.json]
m
That implies there is some
List
forming operation upstream.
n
Upstream is a
collect()
, is that the issue?
Becuase collect gives a value and not a queue?
m
I would say so. Put the
unique
before the
collect
🙌 1
n
Thanks I will give that a try