extension of int, IList, IEnumerable