Basic julia syntax

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



The manual provides a very detailed explanation on both points made by @DNF above.

1 Like

I’ll go through it. Thanks.

1 Like