Adds support for notes. These are comments that are not linked to specific lines of code in the MR.
11 lines
137 B
Go
11 lines
137 B
Go
package main
|
|
|
|
func Contains[T comparable](elems []T, v T) int {
|
|
for i, s := range elems {
|
|
if v == s {
|
|
return i
|
|
}
|
|
}
|
|
return -1
|
|
}
|