The generalized Walsh functions