pinchflat/lib/pinchflat/utils/function_utils.ex

15 lines
347 B
Elixir

defmodule Pinchflat.Utils.FunctionUtils do
@moduledoc """
Utility methods for working with functions
"""
@doc """
Wraps the provided term in an :ok tuple. Useful for fulfilling a contract, but
other usage should be assessed to see if it's the right fit.
Returns {:ok, term}
"""
def wrap_ok(value) do
{:ok, value}
end
end