How do I write a type spec for the function that accepts, let's say, one parameter which has a default value? Something like the following:
def foo(bar \\ 10) do
bar
end
Would it be this:
@spec foo(integer) :: integer
Or what would it be?
Thank you.