RS
Size: a a a
RS
RS
АО
(first, last) вместо [first, last]АО
RS
julia> @btime f4($v)
4.606 μs (44 allocations: 1.50 KiB)
3×2 Array{Int64,2}:
1 10
15 20
30 40
АО
RS
julia> @btime f4($v)
1.530 μs (36 allocations: 1.19 KiB)
3×2 Array{Int64,2}:
1 10
15 20
30 40
АО
[f(x) for (x, f) in Iterators.product([1:10, 15:20, 30:40], (first, last))]
АО
АО
АО
АО
import Base: adjoint, *
adjoint(f::Function) = f
(*)(x, f::Function) = f(x)
[1:10, 15:20, 30:40] * [first, last]'
3×2 Array{Int64,2}:
1 10
15 20
30 40
АО
УМ

АО
AM
AL
AM