Move-to-front algorithm: Difference between revisions
m
→{{header|Go}}: small simplifications
(Added Bracmat example) |
m (→{{header|Go}}: small simplifications) |
||
Line 954:
seq := make([]byte, len(s))
pad := []byte(symbols)
▲ x := byte(bytes.Index(pad, c1))
copy(pad[1:], pad[:x])
pad[0] = c
|