Use some duck-typing for this. I guess any kind of sequence with two values would work.