NSoft.NFramework.Collections.PascalSet.Union C# (CSharp) Method

Union() public method

현재 집합과 지정된 배열의 값들을 요소로 가지는 집합의 합집합을 만든다.
public Union ( ) : PascalSet
return PascalSet
        public virtual PascalSet Union(params int[] values) {
            return Union(new PascalSet(_lowerBound, _upperBound, values));
        }

Same methods

PascalSet::Union ( PascalSet set ) : PascalSet

Usage Example

Beispiel #1
0
        public void Initialize()
        {
            var set = new PascalSet(0, 9);

            _pascalSet1 = set.Union(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);
            _pascalSet2 = set.Union(1, 3, 5, 7, 9);
            _pascalSet3 = set.Union(0, 2, 4, 6, 8);
        }
All Usage Examples Of NSoft.NFramework.Collections.PascalSet::Union