Following the Julia Manual
Moreover, like all vectorized “dot calls,” these “dot operators” are fusing . For example, if you compute
2 .* A.^2 .+ sin.(A)(or equivalently@. 2A^2 + sin(A), using the@.macro) for an arrayA, it performs a single loop overA, computing2a^2 + sin(a)for each element ofA.
Let us try to translate it for our case. You have "1 22 333" input. You iterate it. Strings have special handling in broadcasting so it is a single element loop (i.e. we do not iterate string), so it seems that just parse(Int, split("1 22 333")) should be done as you passed one element in the input. And this fails.
Am I missing something here?