What you mean is « iterate in every entry of myCollection and do some stuff », which would probably better be written as: for key, value in myCollection do — some stuff end