Current section

Files

Jump to
funx lib monad writer result.ex
Raw

lib/monad/writer/result.ex

defmodule Funx.Monad.Writer.Result do
@moduledoc """
Represents the result of running a Writer computation:
the final value and the accumulated monoid.
"""
defstruct [:value, :log]
@type t(a, l) :: %__MODULE__{
value: a,
log: l
}
end