Task

Using two Arrays of equal length, create a Hash object
where the elements from one array (the keys) are linked
to the elements of the other (the values)



Related task

   Associative arrays/Creation


let a => import 'arrays';
let s => import 'stream';
 
let toScope keys vals =>
    s.zip (a.stream keys) (a.stream vals)
    ->
        s.reduce (collect (true)) (@ r scope kv =>
            let [k v] => kv;
            set scope k v;
        )
    ;