Wrapper functions guidlines

this example can help

function mysum(args...)
length(args)==1 && throw(ArgumentError("I can't sum just one element"))
return sum(args...)
end
1 Like