AL
Size: a a a
AL
ŹR
LL
@type either(res) :: {:ok, res} | {:error, reason :: any()}?
PG
LL
PG
LL
sed
по всем своим проектамIK
@type either(res) :: {:ok, res} | {:error, reason :: any()}?
IK
IK
LL
@type either(result, reason) :: {:ok, result} | {:error, reason}
PG
@type result(ok, error) :: {:ok, ok} | {:error, error}
LL
@type result(ok, error) :: {:ok, ok} | {:error, error}
N|
@type either(res) :: {:ok, res} | {:error, reason :: any()}?
N|
@type result(ok, error) :: {:ok, ok} | {:error, error}
IK
def awesome_func(%Foo{bar: baz}, %Bar{baz: baz}), do: true
def awesome_func(_struct, _struct), do: false
LL
def awesome_func(%Foo{bar: baz}, %Bar{baz: baz}), do: true
def awesome_func(_struct, _struct), do: false
case
внутриLL
AD
def awesome_func(%Foo{bar: baz}, %Bar{baz: baz}), do: true
def awesome_func(_struct, _struct), do: false
ŹR