Match On A Map In A With Construct
Many usage example of the with
construct show a series of matches on a tuple.
You can match on more than just tuples though. Here is how you might match on a map.
In fact, you have the full power of Elixir's pattern matching available to you in your series of matches for a with
construct.
Last updated