package lattice // BigramKey is the key for the segment pair (prev, next) at a stage, built by // hashing "prev|next" with HashBytes. iskra/bigram.mx BigramKey. func BigramKey(stage uint8, prev, next []byte) Key { combined := make([]byte, 0, len(prev)+1+len(next)) combined = append(combined, prev...) combined = append(combined, '|') combined = append(combined, next...) return MakeKey(stage, HashBytes(combined)) }