How to create a list from a for each block in Postman flows?

How to create a list from a for each block in Postman flows?

I’m using Postman flows and I want to get data from a for each block and put each element that comes out into a list and then remove the duplicates. Is this possible?

This is what I’ve tried so far:
image