code: function (format) {
  	return function (card) {
  		card = getCode(card);
  		if (!card)
  			return undefined;
  		card--;
  		return format({rank: card >> 2, suit: card & 3});
  	};
  }
docs: Helper function to create card formatters.