You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: 898. Bitwise ORs of Subarrays.go
    path of file: ./repos/LeetCode-Go/leetcode/0898.Bitwise-ORs-of-Subarrays
    
    the code of the file until where you have to start completion: package leetcode

// 解法一 array 优化版
func subarrayBitwiseORs(A []int) int {
    
func inSlice(A []int, T int) bool {
	for _, v := range A {
		if v == T {
			return true
		}
	}
	return false
}