Validating Keyword lists in Elixir
I found out that Keyword.validate/2 is a great way to guarantee that a function would be called with the right keyword options. Check this out:
Here's some interesting cases:
TweetI found out that Keyword.validate/2 is a great way to guarantee that a function would be called with the right keyword options. Check this out:
Here's some interesting cases:
Tweet