import console; var arr = {34,35,2,70,500}; max = reduce(arr,λ(p, n) p < n ? n : p) console.dump(max); min = reduce(arr,λ(p, n) p < n ? p : n) console.dump(min); avg = reduce(arr,λ(p,n) p+n,0)/#arr; console.dump(avg); console.pause(true);