Skip to content

Commit a15cbf3

Browse files
2 parents 23e73af + e7e43c5 commit a15cbf3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ A collection of unique items that preserves their original insertion order. It c
100100

101101
**Useful for:** Tracking a sequence of unique events, processing queue for unique jobs.
102102

103+
> ⚠️ Note that this is an **ordered** collection, not a **sorted** one.
104+
103105
```csharp
104106
// Add returns true if the item was new
105107
if (history.Add("user_logged_in"))
@@ -169,6 +171,8 @@ A one-to-many collection that maps a key to a **unique set** of values that ma
169171

170172
**Useful for:** Tracking user achievements in the exact order they were earned, managing ordered unique dependencies for a build system, storing timelines of unique events per entity.
171173

174+
> ⚠️ Note that this is an **ordered** collection, not a **sorted** one.
175+
172176
```csharp
173177
// Track the unique products a user viewed, in order.
174178
lookup.Add(userId, "product-123");

0 commit comments

Comments
 (0)