Dear Forum I am trying to generate binary codes given a basis. I found : CodeGenBy:=function(codebasis) return Subspace(GF(2)^Length(codebasis[1]),codebasis) works but it done not work for the empty basis codebasis:=[]; How can I make this to work? Tendai Shumba