Defining cons in Java

class List

{

static List cons(int First, List Rest)

  {

  return new List(First, Rest);

        

  }      The meaning of this combination is defined by the constructor later.

:

:

}

 

To Next Slide To Previous Slide To Contents