I want to delete an element from an array when it matches a condition.
But I first want to print something to the screen when a amùcth is
I know a.delete_if but can I somehow add that print to the screen next
to the condition? If not , is there an alternative way to delete from
an array while iterating?