I would say that the card is not for this kind of operation. It creates a new sequence based on other elements of the sequence, but that you do not want to create a sequence, you just want to iterate through them and apply a function to them. In fast, there is no higher order function that matches what you want, I hope they put something soon. Therefore, it is best to use a for loop or write your own function that does what you want.
I would suggest writing your own functionality (based on what the foreach scalar is):
extension Array { func foreach(function: T -> ()) { for elem in self { function(elem) } } }
UPDATED with Swift 2.0
forEach added to SequenceType , so it is available:
(cell.contentView.subviews as [UIView]).forEach { $0.removeFromSuperview() }
source share