I want to slice a string and save it to a memory or storage variable.
Is this possible?
function test(string calldata _input) external{
string memory something = _input[1:3];
}
I am getting the following error:
TypeError: Type string calldata slice is not implicitly convertible to expected type string memory
calldata
tomemory
.