SO rotate question

bearophile bearophileHUGS at lycos.com
Thu Sep 2 17:32:42 PDT 2010


> bool isRotated(T)(T[] s1, T[] s2) {

A better signature for the same function, I need to train myself to use pure and const more often :-)

pure bool isRotated(T)(const T[] s1, const T[] s2) {

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list