Father and software engineer. Love to shoot analogue film, bake and cook. Building apps using Elixir & Phoenix. Experimenting with Elm, Swift, Janet, and Rust.
The line context MyApp.Catalogs.Product creates the following
functions: get_product/1, get_product/1, get_product/1, get_product/1, find_product/1, find_product/1, create_product/1,
update_product/2, delete_product/1, create_product/1,
update_product/2, delete_product/1.
Father and software engineer. Love to shoot analogue film, bake and cook. Building apps using Elixir & Phoenix. Experimenting with Elm, Swift, Janet, and Rust.
Elixir noob here.
Why does the context generate multiples of the same function and arity, e.g. get_product/1?
Thanks in advance.
Hey Volker, I'm not sure what you mean? The context is supposed to generate only one
get_product/1
function. Can you show me some example code?I am referring to what you wrote above:
get_product/1 is mentioned a couple of times
Why is that?
Thank you!
Aaaah good one, I think I copy-pasted a little bit to much. Going to change it now! Thanks for the feedback