import List from './list' ; export default class Enumerable { /**
     * Generates a sequence of integral numbers within a specified range.
     */ public static Range ( start , count ) { let result = new List < number > ( ) ; while ( count -- ) { result . Add ( start ++ ) ; } return result ; } /**
     * Generates a sequence that contains one repeated value.
     */ public static Repeat < T > ( element , count ) { let result = new List < T > ( ) ; while ( count -- ) { result . Add ( element ) ; } return result ; } }