class Link { x: int32; } peek_head (head: Link) -> int32 { if (head != null) return head.x; else return -1; }