Discrete Choice and Rational Inattention: A General