aoc2024/day-22/internal/two/sequence.go

8 lines
123 B
Go
Raw Normal View History

2024-12-22 16:54:03 +00:00
package two
type sequence [4]int
func (s *sequence) shift(next int) {
s[0], s[1], s[2], s[3] = s[1], s[2], s[3], next
}