Is there an elegant way to return the input of a function used in Elixir pipelines?

后端 未结 0 825
天涯浪人
天涯浪人 2021-01-13 14:27

I have some Elixir code like this:

def generate_and_process_foo() do
  foo = generate_foo() |> transform_foo()
  process_foo(foo)
  foo
end
<
相关标签:
回答
  • 消灭零回复
提交回复
热议问题