mirror of
https://github.com/github/codeql.git
synced 2026-01-17 00:14:51 +01:00
11 lines
159 B
Go
11 lines
159 B
Go
package main
|
|
|
|
func isPrefixOf(xs, ys []int) bool {
|
|
for i := 0; i < len(xs); i++ {
|
|
if len(ys) == 0 || xs[i] != ys[i] {
|
|
return false
|
|
}
|
|
}
|
|
return true
|
|
}
|