code: function lastChain (first, sequence) {
      var index = getIndexOfNextEnvAppearance(first, PromisePipe.env, sequence);
      return index === -1 ? (sequence.length - 1) : (index - 1);
    }
docs: Return lastChain index
  @param   {Number}  first
  @return  {Number}