What would you call a collection class which represents a set but where the order matters?

A collection that can have duplicates and where the order matters is called a List. A collection that can have duplicates and where the order doesn't matter is called a Bag. A collection that cannot have duplicates and where the order doesn't matter is called a Set.

What then for the fourth combination; what would you call the class of collection that cannot have duplicates and where the order matters?

If you can link to an example of your suggested name (the more widely-used the better), please do so.

Answers


I would name it an ordered set


How about List-Ordered Set.

Example: Java's Apache Commons Collections library (class docs) (now obsolete since Java introduced its own LinkedHashSet class).


Need Your Help

Open a page in a new tab with JS

javascript google-chrome

I am converting some <ul> into a <select> for small devices, like this:

Load PDF into UIImage or UIImageView?

iphone pdf uiimageview uiimage iphone-sdk-3.2

This is my first ever question on stackoverflow.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.