Yeah, I didn't do that because it's O(n).  maybe not an optimization worth making, I guess