Elixir Blog Post: Conditional guard for structs of an explicit type

Blogged on how to conditionally define a guard to check if the argument is a particular struct so that it works with previous versions of Elixir / OTP.

Conditional guard for structs of an explicit type


Posted via Devtalk (see this thread for details).

3 Likes