algorithmic modeling for Rhino
see attached. It's a bit smaller (and I think quite a bit faster, especially on large lists). I added comments to the code, but here it is without:
Dim lut As New SortedDictionary(Of Double, Boolean)
Dim result As New List(Of Double)
For Each value As Double In Values
If (lut.ContainsKey(value)) Then Continue For
A = result
what to do for string duplicates?
Dim lut As New SortedDictionary(Of String, Boolean)
Dim result As New List(Of String)
You can use any type you want as long as it provides it's own CompareTo method. If it doesn't, then you'll have to provide the SortedDictionary with a custom delegate which performs the comparison.
(it's always a pleasure learning from the master)