Task

Take a combined set of elements and apply a function to each element.




let a => import 'arrays';
let s => import 'stream';
 
let example => [3; 5; 2];
 
let double => a.stream example
-> s.map (* 2)
-> s.collect
;