Comment Comment by jonnycat Elixir (and some other languages as well) solves this with the pipe operator:some_array |> do_thing() |> do_another_thing() |> do_something_else()Even though Elixir is functional and aggressively not object oriented, if you squint at this pattern you get the readability of an OO-style method chaining API. parent jonnycat 4 years ago
some_array |> do_thing() |> do_another_thing() |> do_something_else()
Even though Elixir is functional and aggressively not object oriented, if you squint at this pattern you get the readability of an OO-style method chaining API.