Map and broadcast
Map map(f, c...) applies function f to each element of collection c that enter as the the second argument of the map function. Below two lines of codes produce same output. This means that map also acts as a for loop. map(x->x+2, 1:10) [ x + 2 for x=1:10] Output: 10-element Vector{Int64}: 3 4 5 6 7 8 9 10 11 12 The function that enters the first argument of map could take multiple arguments; it could be more than one argument....