Flashes Home Search Notifications Sign in Post
Elixir ▷ Max @mxgrn.com · Jan 27

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

?

Replies

Benjamin 🌴 · Jan 27

wow... had no idea that was possible. Thanks

Norbert Melzer · Jan 27

This is due to the access behaviour. hexdocs.pm/elixir/Acces...

Legal

Privacy Policy Terms and Conditions

Contact

FAQs Feedback

Follow

Bluesky Instagram Threads
Flashes for Bluesky Get it on the App Store

Feeds

  • Global
  • Trending
  • Blacksky Images
  • Photography
  • Discover
Browse all feeds
Feedback Ideas, bugs, and what ships next
Privacy Policy Terms and Conditions FAQs Bluesky Instagram Threads
Get it on the App Store