DEV Community

Discussion on: So Many Ways to Update a Map with Elixir!

Collapse
 
wulymammoth profile image
David

Funnily enough, I similarly called it the "short syntax", and had completely forgotten the official name for using the "pipe" (not to be confused with |>). The | in Elixir and Erlang is the cons operator and most often used by us in lists and maps. I've not looked into the origins of that name, but do know that it exists in various functional languages with a different symbol or denoted in some other way