<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>E_Mattsan</author_name>
  <author_url>https://blog.hatena.ne.jp/E_Mattsan/</author_url>
  <blog_title>エンジニアのソフトウェア的愛情</blog_title>
  <blog_url>https://blog.emattsan.org/</blog_url>
  <categories>
    <anon>Elixir</anon>
    <anon>めも</anon>
  </categories>
  <description>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) &lt;&gt; Integer.to_string(rhs)) end end 普通の関数と同じように利用することができます。 Foo.+(123, 456) モジュール名で修飾することなく、一般的な演算子として利用するには import する必要があ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.emattsan.org%2Fentry%2F2024%2F04%2F30%2F190000&quot; title=&quot;Elixirの演算子多重定義に関する覚書 - エンジニアのソフトウェア的愛情&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn.user.blog.st-hatena.com/default_entry_og_image/401695/1514192717173017</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-04-30 19:00:00</published>
  <title>Elixirの演算子多重定義に関する覚書</title>
  <type>rich</type>
  <url>https://blog.emattsan.org/entry/2024/04/30/190000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
