First of all, I am new to elixir so I’m sorry if this question seems trivial.
I’m currently confused about partial evaluation application in elixir. Does pipe operator always apply partial evaluation? What makes me confused is because every function in pipe operator can be written with less arguments than it should.
e.g.
payload
|> Map.put("custom_id", payload["id"])
|> Map.drop(["id"])
As we can see, Map.put
can receive 2 arguments when it should be 3 arguments, as well as Map.drop
can receive 1 argument when it should be 2 arguments. Is this an example of partial evaluation in elixir?
If not so, can I have some examples of partial evaluation application in elixir?
I appreciate any help that I can get, thank you in advance