DEV Community

Discussion on: Java Daily Coding Problem #005

Collapse
 
erikpischel profile image
Erik Pischel

What about type inference in your example exa and exb?

The given definition of cons is really surprising since cons, car and cdr are basic functions in LISP and in LISP cons is just constructing a 2-element list.