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:

https://twitter.com/dev_talk/status/1360131538881548296

Share link for this tweet.


Related portal: