<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kazuhira</author_name>
  <author_url>https://blog.hatena.ne.jp/Kazuhira/</author_url>
  <blog_title>CLOVER🍀</blog_title>
  <blog_url>https://kazuhira-r.hatenablog.com/</blog_url>
  <categories>
    <anon>Groovy</anon>
    <anon>Scala</anon>
    <anon>Clojure</anon>
  </categories>
  <description>珍しくトラックバックなどいただいたので、もうちょっとこのネタを書いてみることにしました。関数合成して何が嬉しいのか…ですが、前の例みたいな足し算、掛け算なんか書いても、確かにあんまりまあ現実味ないですからねぇ。それに、こういう単純なメソッド呼び出しの組み合わせと比べて、何が違う？って話もあると思います。 def f(x) ... def g(x) ... g(f(x)) // f &gt;&gt; gと意味的には同じ 考え方としては、「小さな関数を合成して別の大きな関数を作り上げていく」ということでしょうか。これを意識に置いた上で実装するようにしていくと、自然と見通しやすい大きさの関数定義をするようになる…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazuhira-r.hatenablog.com%2Fentry%2F20120422%2F1335092611&quot; title=&quot;Groovy、Clojureでもっと関数合成（オマケでScala） - CLOVER🍀&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://images-fe.ssl-images-amazon.com/images/I/41mJTrvw2pL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-04-22 20:03:31</published>
  <title>Groovy、Clojureでもっと関数合成（オマケでScala）</title>
  <type>rich</type>
  <url>https://kazuhira-r.hatenablog.com/entry/20120422/1335092611</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
