<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>minazoko</author_name>
  <author_url>https://blog.hatena.ne.jp/minazoko/</author_url>
  <blog_title>水底で思うこと</blog_title>
  <blog_url>https://minazoko.hatenadiary.org/</blog_url>
  <categories>
    <anon>Clojure</anon>
  </categories>
  <description>F# の &gt;&gt; がClojureにも欲いですね。 Clojure では関数合成は comp を使いますが、comp で作った合成関数は、右から順に適用されます。 F#の e &gt;&gt; f &gt;&gt; g &gt;&gt; h が、Clojure では (comp h g f e) と書かなければなりません。でも、ソースコード読むときはなるべく左から右へ読みたいですよね。そこで簡単なものですが書いてみました。関数版 (defn comp&gt;&gt; [&amp; fs] (apply comp (reverse fs))) マクロ版 (defmacro mcomp&gt;&gt; [&amp; fs] (let [fsr# (reverse fs)] …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fminazoko.hatenadiary.org%2Fentry%2F20111103%2F1320310897&quot; title=&quot;左から適用される合成関数 - 水底で思うこと&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-11-03 18:01:37</published>
  <title>左から適用される合成関数</title>
  <type>rich</type>
  <url>https://minazoko.hatenadiary.org/entry/20111103/1320310897</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
