Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Use .identified() To Use Any Array In a ForEach

Use .identified() To Use Any Array In a ForEach

Daily Coding Tip 164

Millie Sturgeon's avatar
Millie Sturgeon
Aug 31, 2022
∙ Paid

Share this post

Type Safely
Type Safely
Use .identified() To Use Any Array In a ForEach
Share
brown wooden puzzle game board
Photo by Brett Jordan on Unsplash

If I make Int and String conform to the Identifiable protocol, can I use arrays of them in a ForEach?

Let’s find out!

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share