Welcome to JuliaLang Discourse!
In the first one, what about broadcasting %?

x=[30, 31,32]
x .% 17

About the second one, broadcasting spits a result of similar size as the input, so giving two arrays comes against this. Maybe using an alternative option?

a1 = similar(x)
a2 = similar(x)
for i in eachindex(x)
a1[i], a2[i] =divrem(x[i], 17)
end

Hi @longemen3000 , thanks for the answer!
I am afraid that mod and % (rem) are two different mathematical operations - differences occur for negative numbers and it affects algorithms I am working on. I can implement ‘mod’ with ‘rem’, but I want to keep things simple, that’s why I am looking for alternative syntax.
Your answer gave me an idea - I’ll try to define custom infix operator that is doing ‘mod’ and I’ll broadcast result array with it.
The second suggestion is good, cause it scans x array once, probably I will do something similar inside a helper method.