TIL: You can define fetch/2 in your struct-defining module and have it return anything you want for the [] operator: #ElixirLang
17 likes 2 replies
?
TIL: You can define fetch/2 in your struct-defining module and have it return anything you want for the [] operator: #ElixirLang
17 likes 2 replies