Hello!
I am totally new to Elixir and I just found your response because I am trying to figure out this pattern matching for types
is def takesStruct(struct = %StructTest{}) do equivalent to def takesStruct(%StructTest{} = struct) do?
As I understand, def takesStruct(%StructTest{} = struct) do is checking that struct is of type StructTest, am I right? or is it explicitly requiring an empty struct? (I dont think it is even possible…)
Thank you in advance






















