---
title: "Discussion on \"Difference between Some and Any with Protocols in Swift\" | Hashnode"
description: "Discussion on \"Difference between Some and Any with Protocols in Swift\". Learn the difference between 'some' and 'any' with protocols in Swift. 'Some' for at least one known type, 'Any' for any type, even unknown at compile time."
url: "https://hashnode.com/posts/difference-between-some-and-any-with-protocols-in-swift/6405d53696345f1ece821c30"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Difference between Some and Any with Protocols in Swift](https://namitgupta.com/difference-between-some-and-any-with-protocols-in-swift?utm_source=hashnode&utm_medium=feed)

Learn the difference between 'some' and 'any' with protocols in Swift. 'Some' for at least one known type, 'Any' for any type, even unknown at compile time.

Mar 6, 2023 · 3 min read · namitgupta.com  
Read the article

-   [#swift](https://hashnode.com/tag/swift)
-   [#swiftui](https://hashnode.com/tag/swiftui)
-   [#interview-questions](https://hashnode.com/tag/interview-questions)
-   [#ios](https://hashnode.com/tag/ios)
-   [#ios-app-development](https://hashnode.com/tag/ios-app-development)

## Written by

[Namit Gupta](https://hashnode.com/@namitgupta)

@namitgupta · Bengaluru, India

  
[View profile](https://hashnode.com/@namitgupta)

Seasoned Mobile App Dev (iOS & React Native)

Experienced iOS and React Native Developer with 10+ Years of Expertise - Available for New Opportunities. Connect Now!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
