aoc2024/day-08/internal/util/util.go

8 lines
120 B
Go

package util
func ReplaceAtIndex(s string, r rune, i int) string {
out := []rune(s)
out[i] = r
return string(out)
}