implizit:
class Stack<E> { void push (E item); E pop (); private List<E> contents; }explizit:
class Stack<E> { List<E> push (List<E> contents, E item); Pair<List<E>,E> pop (List<E> contents); }
Testfrage: wie heißt diese Funktion push
sonst?
(bei vertauschten Argumenten) (Antwort: cons)