Boo.Lang.Builtins.range C# (CSharp) Метод

range() публичный статический Метод

public static range ( int max ) : IEnumerable
max int
Результат IEnumerable
        public static IEnumerable<int> range(int max)
        {
            if (max < 0) /* added for coherence with behavior of compiler-optimized
                          * for-in-range() loops, should compiler loops automatically
                          * inverse iteration in this case? */
            {
                throw new ArgumentOutOfRangeException("max < 0");
            }
            return range(0, max);
        }

Same methods

Builtins::range ( int begin, int end ) : IEnumerable
Builtins::range ( int begin, int end, int step ) : IEnumerable