On Jan 26, 2013, at 6:46 PM, Zee <notifications@github.com> wrote:

> For claritys sake, would it be possible to refactor this toSudoku::Puzzle::ChoiceVector.new(apply_operator(:&, argument_vector)).not_me?
> 
#not_me takes an argument. All of them do. So there would actually be 4 vectors then.

If processor time is important, I suspect the better path is to refactor to a table lookup. So instead of defining the more "complicated" functions in terms of ! & |, I could just have the four results in a canonical order and do some math to look them up by index. Basically encode the truth table as an array.

Or maybe I might change "apply_operator" to produce an array of true/false I can iterate over afterwards.

Bill Tozier
Line
Vague Innovation, LLC
bill@vagueinnovation.com