Closed treere closed 6 months ago
This is only a code refactoring.
The main change is that i changed the pattern:
%Stuff{} |> set_a(data) |> set_b(data) |> set_c(data)
Into
%Stuff{a: create_a(data), b: create_b(data)}
I did this because set_a function is more complex than create_a and it is explicit that to create the a value I use only data.
set_a
create_a
a
data
This is only a code refactoring.
The main change is that i changed the pattern:
Into
I did this because
set_a
function is more complex thancreate_a
and it is explicit that to create thea
value I use onlydata
.