scala solution. lowest unset bit
scala []\nobject Solution {\n  def minBitwiseArray(nums: List[Int]): Array[Int] = {\n    nums.map(BigInt(_)).map(bigInt => (Option.when((bigInt&1) != 0) {\n    
```scala []\nobject Solution {\n  def minBitwiseArray(nums: List[Int]): Array[Int] = {\n    nums.map(BigInt(_)).map(bigInt => (Option.when((bigInt&1) != 0) {\n      lazy val lowestUnSetBit = (~bigInt).lowestSetBit\n      lazy val hiBits = bigInt & ~((1<<lowestUnSetBit)-1)\n      lazy val loBits = (1<<(lowestUnSetBit-1))-1\n      (hiBits | loBits).toInt\n    }).getOrElse(-1)).to(Array)\n  }\n}\n```
['Scala']