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

1 Like

Corresponding tweet for this thread:

Share link for this tweet.


Related portal: