<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ha-tan</author_name>
  <author_url>https://blog.hatena.ne.jp/ha-tan/</author_url>
  <blog_title>趣味的にっき</blog_title>
  <blog_url>https://ha-tan.hatenadiary.org/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>Haskellで関数の引数の順番を考えるときには、一番変更するであろう引数を一番最後にするのがよいように思います(関数をカリー化して高階関数に渡す場合を考えると…)。 例えば、文字列を左詰めにして返す関数を考えてみます。ljustは文字列、幅の順番で、ljust2は幅、文字列の順番で引数を渡します。で、この関数の一般的な使用ケースを考えると、幅を固定して文字列を変更する場合が多いように思います(以下のような場合)。とするとljust2の方がflipがいらないのでスマートだと思います。 こんな考え方ってHaskellじゃ常識なのかしら？ カリー化っていう概念が他の言語じゃあまりないので… mod…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fha-tan.hatenadiary.org%2Fentry%2F20070110%2F1168440544&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>2007-01-10 23:49:04</published>
  <title> 関数の引数の順番</title>
  <type>rich</type>
  <url>https://ha-tan.hatenadiary.org/entry/20070110/1168440544</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
