10 ms·
It works with functions rather than methods. So you can do something like this, calling functions from various modules / services: order = %{amount: 123, c
by ramchip 9y ago
It works with functions rather than methods. So you can do something like this, calling functions from various modules / services:
order = %{amount: 123, customer_id: 45}
result = order
|> Orders.validate()
|> Database.save()
|> PubSub.publish()
whereas with method chaining you can only call methods of the object being passed around.