I have a string array like:
string [] items = {\"one\",\"two\",\"three\",\"one\",\"two\",\"one\"};
I would like to replace all ones with z
Theres no way to do that without looping.. even something like this loops internally:
string [] items = {"one","two","three","one","two","one"};
string[] items2 = items.Select(x => x.Replace("one", "zero")).ToArray();
I'm not sure why your requirement is that you can't loop.. however, it will always need to loop.