5 Lines in Ruby
ruby\n# @param {Integer[]} nums\n# @return {Integer}\ndef min_impossible_or(nums)\n  uniq_nums, res = nums.to_set, 1\n  while uniq_nums.include?(res)\n    res *
```ruby\n# @param {Integer[]} nums\n# @return {Integer}\ndef min_impossible_or(nums)\n  uniq_nums, res = nums.to_set, 1\n  while uniq_nums.include?(res)\n    res *= 2\n  end\n  res\nend\n```
['Ruby']