Append To A Keyword List
If you have two keyword lists, you can append them like so:
But what if something a bit more programmatic is happening and you are building up the additions to the keyword list based on variables?
That makes elixir think x
is some function when in fact it is just a variable containing the keyword :x
.
Simply adding a comma doesn't quite do it either.
We need to wrap the internal part with curly braces to create the tuple that can then be appended to a
.
Last updated