❔ I need help with String split
So is there a way if im splitting string to 3lines to remove the last string? Or is it possible to save first 2 lines as a string?
Compile: 540.516ms | Execution: 36.271ms | React with ❌ to remove this embed.
/close save first 2 lines as a string?string foo = "aaa bbb ccc";
string[] bar = foo.Split(" ")[..^1];
bar[
"aaa",
"bbb"
]