Eye for an eye, was a law that allowed the (proven) victim to request the (proven) perpetrator up-to (but no more than) an equal punishment to the harm done. Yes a person who got his eye stoned out by crazy guy, could have the crazy guy’s eye stoned out. Which is, honestly, fair.
I guess in this case, the girl could request Mandingo to rape the guy, which, while deeply hilarious, might actually teach something, especially compared to just a jail sentence (that might be heavily reduced due to “good behaviour”)