// indexOf returns the index of an element in an array
funcindexOf[Tcomparable](collection[]T,eT)int{
fori,x:=rangecollection{
ifx==e{
returni
}
}
return-1
}
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.