to delete the '\0' characters

Ali Çehreli acehreli at yahoo.com
Thu Sep 22 15:22:06 UTC 2022


On 9/22/22 08:19, Ali Çehreli wrote:

 > string noZeroes(string s)
 > {
 >      return s.byCodeUnit.filter!(c => c != '\0');
 > }

That won't compile; the return type must be 'auto'.

Ali




More information about the Digitalmars-d-learn mailing list