Catrobat.IDE.Core.CatrobatObjects.Range.Combine C# (CSharp) Method

Combine() public static method

public static Combine ( Range x, Range y ) : Range
x Range
y Range
return Range
        public static Range Combine(Range x, Range y)
        {
            return Range.FromIndices(Math.Min(x.Start, y.Start), Math.Max(x.End, y.End));
        }