Changeset 1584 for cobra/trunk/Source/Boxes.cobra
- Timestamp:
- 08/19/08 05:43:00 (5 months ago)
- Files:
-
- 1 modified
-
cobra/trunk/Source/Boxes.cobra (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cobra/trunk/Source/Boxes.cobra
r1583 r1584 318 318 319 319 # eliminate duplicates 320 # CC: suggs = List<of String>(Set<of String>(suggs)) 321 d = Dictionary<of String, int>() 322 for sugg in suggs 323 d[sugg] = 1 324 suggs = List<of String>(d.keys) 325 320 suggs = List<of String>(Set<of String>(suggs)) 326 321 suggs.sort 327 322 328 323 # okay to sort by alpha, but if a name differs only by case, put it up front 329 324 lowerName = name.toLower 330 for i = 0 ..suggs.count325 for i in suggs.count 331 326 if suggs[i].toLower == lowerName 332 327 sugg = suggs[i]
