type node = {value : int, next : node} function append(list: node, element: int) = if list.next = nil then list.next := node{value = element, next = nil} else append(list.next, element) function display(list: node) = if list <> nil then ( print_int(list.value); (if list.next <> nil then print(" -> ")); display(list.next) )