For-In loop without variable name in Swift

If we don’t want to use each value in a sequence, we can replace the variable name in for-in loop with an underscore.

Leave a Reply