Are there anydice function(s) or code for Savage Worlds rolls?

I am trying to use the exploding function and the highest of functions, but I am having issues with the skill die or wild die side of the roll.

If I do output [highest 1 of 1d4 + 1d6] I get a minimum result of 2…which tells me I am doing this wrong. Is there a way to do highest of d4 OR d6?