How To convert an array to object

let col =[“id”,“roll”,“class”];
expected out put
let colNew = {id:“new”,roll:“new”,class:“new”}

https://rescript-lang.org/try?version=v10.1.2&code=DYUwLgBAxg9sEF4IG0BEBLAJqgNBVATnMLvlMAIYDOVqAugFCiSzAByIA7otHALQA+AFJUAdAEECBCgE8ATKIC2FAA4AKANYgZiARE3a8qAHZdUASnOCRogCLooYUQDMiiydJkMbwGAHM1Vg5OcwYgA