How to apply array on collection?

I think we’re talking about two different things.

If you look at the example I posted in that thread you’ll see what I mean:

Which is more related to what the OP posted here.