Skip to content

Commit

Permalink
C++ unique is only for runs of the same value
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra authored Jan 29, 2024
1 parent c6ee980 commit dcce55d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ let uniques = iter.uniqBy(obj => obj.field);

| language | library | simple API | with comparator | with mapping |
|----------|---------|------------|-----------------|--------------|
| C++ | <algorithm> | `unique` | `unique` | -- |
| Clojure | core | `distinct` | -- | -- |
| Elm | List.Extra | `unique` | -- | `uniqueBy` |
| Haskell | Data.List | `nub` | `nubBy` | -- |
Expand Down

0 comments on commit dcce55d

Please sign in to comment.