def f_1(data) do
data
|> transformation_1()
|> transformation_2()
|> f_2()
end
# still purely sequential - more like a (sequential) fork/join
# because everything has to be an expression.
#
def f_2(snapshot_data) do
{transformation_3(snapshot_data),transformation_4(snapshot_data)} # return both results as a tuple
end
More often than not the solution to a problem is “functions”.






















