Julia function for replacing nothings with default values?

Does Julia have a built-in function akin to the following?

replace_nothing(given,default) = given
replace_nothing(::Nothing, default) = default

something

4 Likes

Right, I remember seeing this one at some point. Thanks for the speedy reply!