67465364_491902344708962_1591338503323516928_n.jpg

Hi.

Welcome to my blog. I document my ideas and productivity hacks.

I learned today - Elixir - Pipe operator - Calling a function with more than 1 parameter

In elixir the pipe operator |> allows you to pass the result of an expression as the first parameter of another expression.

For example:

list |> reverse

Where reverse is a function

However if the function takes more than 1 parameter, it is recommended to use parentheses to pass the second argument when using the pipe operator.

For example:

list |> take(5)

Where take is a function that takes 2 parameters

For more information about this you can go to Pipe Operator - Elixir School

https://elixirschool.com/en/lessons/basics/pipe-operator/

Azure Pipelines - Deploy a .Net Core WebApi with Pulumi

Short Book Review - Clean Coder by Robert C. Martin