mfm-parser/lib/token.ex

5 lines
146 B
Elixir

defmodule MfmParser.Token do
def append(token = %{content: content}, new_char) do
token |> Map.put(:content, content <> new_char)
end
end