Using pattern matching to iter over vec

Nice tip from krdln via reddit. Thank you!