'use strict';

var rainbow = require('../../../../../_virtual/rainbow.js');

var hasRequiredRainbow;

function requireRainbow () {
	if (hasRequiredRainbow) return rainbow.__module.exports;
	hasRequiredRainbow = 1;
	(function (module) {
		module['exports'] = function(colors) {
		  // RoY G BiV
		  var rainbowColors = ['red', 'yellow', 'green', 'blue', 'magenta'];
		  return function(letter, i, exploded) {
		    if (letter === ' ') {
		      return letter;
		    } else {
		      return colors[rainbowColors[i++ % rainbowColors.length]](letter);
		    }
		  };
		}; 
	} (rainbow.__module));
	return rainbow.__module.exports;
}

exports.__require = requireRainbow;
