public static <T>List<T> rest(List<T> l){
  return l.subList(1,l.size());
}

public static < T > List < T > rest ( List < T > l ) { return l . subList ( 1 , l . size ( ) ) ; }
get a sublist of all of the elements in the list except for first .
