code: function _Platform_initialize(flagDecoder, args, init, update, subscriptions, stepperBuilder)
  {
  	var result = A2(__Json_run, flagDecoder, __Json_wrap(args ? args['flags'] : undefined));
  	__Result_isOk(result) || __Debug_crash(2 /**__DEBUG/, __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