@Deprecated public static List<Integer> range(int fromIncl,int toExcl){
  A.ensure(fromIncl >= 0,"fromIncl >= 0");
  A.ensure(toExcl >= 0,"toExcl >= 0");
  A.ensure(toExcl >= fromIncl,"toExcl > fromIncl");
  if (toExcl == fromIncl)   return Collections.emptyList();
  List<Integer> list=new ArrayList<>(toExcl - fromIncl);
  for (int i=fromIncl; i < toExcl; i++)   list.add(i);
  return list;
}

@ Deprecated public static List < Integer > range ( int fromIncl , int toExcl ) { A . ensure ( fromIncl >= 0 , "fromIncl >= 0" ) ; A . ensure ( toExcl >= 0 , "toExcl >= 0" ) ; A . ensure ( toExcl >= fromIncl , "toExcl > fromIncl" ) ; if ( toExcl == fromIncl ) return Collections . emptyList ( ) ; List < Integer > list = new ArrayList < > ( toExcl - fromIncl ) ; for ( int i = fromIncl ; i < toExcl ; i ++ ) list . add ( i ) ; return list ; }
creates a range list containing numbers in given range .
