Just getting into elm and I have been going through a couple books/online tutorials.
Problem:
I am trying to understand how to extend existing libraries. Inside my own code base.
In elixir it I would like to be able to do something like:
def update_video_name(video) do
video |> Map.merge(%{name: "def"})
end
x = %Video{url: "https://asdf.com/a.m3u8", name: "abc"}
y = update_video_name(video)
Are you needing to change a field of Service? If there is something missing from the API you need, I am sure it can be added. I took over this codebase from the original work by Kevin Tonon - so it can be a little untidy due to the change of hands - but lets fix it.