On Thursday, 16 February 2017 at 21:05:51 UTC, Stefan Koch wrote:
> [ ... ]
String Slicing is in!
The following code will now compile with newCTFE.
string slice(string s, uint lwr, uint upr)
{
return s[lwr .. upr];
}
static assert(slice("Hello World", 6, 11) == "World");