Insectoid @ Mon Jan 14, 2019 9:46 am wrote:
Haha, welcome to computer science. 30 minutes is nothing in this world.
I did make a mistake in my previous post, I should have written dashes := a piece of dashes + letter + another piece of dashes.
Okay I came up with this, but it's saying "Left bound of substring is less than 1"
if letter = word (x) then
dashes := (dashes (x .. x - 1)) + letter + (dashes (x - 1 .. *))