in ruby you can write it this way:
```
  return list.map { |k| k == value ? Item(Id(k),k,true) : Item(Id(k),k) }
```