lib/MissMatch.js
function arrayToObject(array) {
    var obj = {}, i;
    if (array.length % 2 !== 0) {
      throw "Missing handler for pattern";
    }
    
    for (i = 0; i < array.length; i+=2) {
      obj[array[i]] = array[i+1];
    }
    return obj;
  }
function arrayToObject(array) {
    var obj = {}, i;
    if (array.length % 2 !== 0) {
      throw "Missing handler for pattern";
    }
    
    for (i = 0; i < array.length; i+=2) {
      obj[array[i]] = array[i+1];
    }
    return obj;
  }
['o', 42] => {o: 42}