, value " ", other_value - , Multi.run/5. , Foo:
defmodule Foo do
def some_fun(value, other_value) do
case value do
nil -> {:error, other_value}
_ -> {:ok, other_value}
end
end
end
Multi.run/5 :
Multi.run(multi, name, Foo, :some_fun, [other_value])
Multi.run/3:
Multi.run(multi, name, fn value -> Foo.some_fun(value, other_value) end)