code: public static Object get(Object list, int i)
      {
          if (list==null)
              throw new IndexOutOfBoundsException();
          
          if (list instanceof List)
              return ((List)list).get(i);
  
          if (i==0)
              return list;
          
          throw new IndexOutOfBoundsException();
      }
docs: Get item from the list
  @param list  A LazyList returned from LazyList.add(Object) or null
  @param i int index
  @return the item from the list.