code: function _Platform_initialize(
      flagDecoder,
      args,
      init,
      update,
      subscriptions,
      stepperBuilder
    ) {
      var result = A2(
        _Json_run,
        flagDecoder,
        _Json_wrap(args ? args["flags"] : undefined)
      );
      elm$core$Result$isOk(result) ||
        _Debug_crash(2 /**/, _Json_errorToString(result.a) /**/);
      var managers = {};
      result = init(result.a);
      var model = result.a;
      var stepper = stepperBuilder(sendToApp, model);
      var ports = _Platform_setupEffects(managers, sendToApp);
  
      function sendToApp(msg, viewMetadata) {
        result = A2(update, msg, model);
        stepper((model = result.a), viewMetadata);
        _Platform_dispatchEffects(managers, result.b, subscriptions(model));
      }
  
      _Platform_dispatchEffects(managers, result.b, subscriptions(model));
  
      return ports ? { ports: ports } : {};
    }
docs: INITIALIZE A PROGRAM