Example of record aspect:

Linked-List Implementation

e.g. IntList - list of integers

 

The record for an IntList cell thus consists of two values:

int: the integer stored in the cell

IntList: the reference to the next cell

Link to IntList.java.

Next Slide Previous Slide Contents