using System.Collections.Generic; namespace Collections { /// /// セット。 /// 数学で「集合」と呼ぶ奴。 /// 要素の順序には意味がなくて、要素が含まれているかどうかだけが問題。 /// /// 要素の型 interface ISet : IEnumerable { void Insert(T elem); void Erase(T elem); bool Contains(T elem); } }