thrownewArgumentException($"Invalid value for index: '{match.Groups["index"].Value}'");
Start=start;
Stop=start+1;
Step=1;// special case for dimensionality reduction by picking a single element
IsIndex=true;
return;
}
varstart_string=Regex.Replace(match.Groups["start"].Value??"",@"\s+","");// removing spaces from match to be able to parse what python allows, like: "+ 1" or "- 9";