let iter (func: element -> unit) (context: context) : unit =
  Stack.iter func context.context