4 ms·
Broadcasting and map are two different operations. If all the inouts have the same shape broadcast is equivalent to map, but in Julia you can also just use map.
by vchuravy 5y ago
Broadcasting and map are two different operations. If all the inouts have the same shape broadcast is equivalent to map, but in Julia you can also just use map.
`map(el->el^2, a)`
and inspired by Ruby
```
map(a) do element
log(element)
end
```
The latter being syntax sugar for the former.