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

8 lines
120 B
Go
Raw Normal View History

2024-12-08 19:55:23 +00:00
package util
func ReplaceAtIndex(s string, r rune, i int) string {
out := []rune(s)
out[i] = r
return string(out)
}