Elixir には演算子を再定義できる機能が備わっています。 https://hexdocs.pm/elixir/operators.html#custom-and-overridden-operators defmodule Foo do def lhs + rhs do String.to_integer(Integer.to_string(lhs) <> Integer.to_string(rhs)) end end 普通の関数と同じように利用することができます。 Foo.+(123, 456) モジュール名で修飾することなく、一般的な演算子として利用するには import する必要があ…