I have a function
function inputs(setup::Dict, path::AbstractString)
What actually setup meaning here ? Is it like input::Dict ?
I have a function
function inputs(setup::Dict, path::AbstractString)
What actually setup meaning here ? Is it like input::Dict ?
The name doesn’t have any meaning. It’s just a variable name that you can use inside the function. You can call it setup, input, x, strawberry_jam or whatever you want.
The ::Dict part means that setup (or whatever you want to call it) must some subtype of Dict.
Have you read
https://docs.julialang.org/en/v1/manual/functions/
and
https://docs.julialang.org/en/v1/manual/methods/#Methods
?
The manual provides a very detailed explanation on both points made by @DNF above.
I’ll go through it. Thanks.