I have two functions
funcA(x::AbstractMatrix;subd=nothing)=funcA(x[1,:],x[2,:],subd) # format transformer
funcA(a::AbstractVector,b::AbstractVector;subd=nothing)
babalah
end
and
funcB(x::AbstractMatrix)=funcB(x[1,:],x[2,:]) # format transformer
funcB(a::AbstractVector,b::AbstractVector)
babalah
end
I wish a macro can easily help me to add the "format transformer" automatically to the funcA and funcB and it can add arguments. What should I do?