forEach

inline fun forEach(action: (Attachment) -> Unit)(source)

Calls action with every attachment, in slot order. action may remove the one it is given.