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