Arrays in functions

Thank you! At the moment I am trying this approach:
for (Barrier : Barriers):
Barrier.Enable()

Is that what you are talking about? Or what do you mean when you talk about passing an array of barriers?