Frames.Maketype env = S.t listSlots are ordered innermost first, so the list head has index zero.
val empty : envnth env i returns None beyond the end and raises Invalid_argument if i is negative.
A non-dependent merge preserves its ambient context; the slot argument is ignored.
The argument becomes index zero and the recursive function index one.