<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Windymelt</author_name>
  <author_url>https://blog.hatena.ne.jp/Windymelt/</author_url>
  <blog_title>Lambdaカクテル</blog_title>
  <blog_url>https://blog.3qe.us/</blog_url>
  <categories>
    <anon>Scheme</anon>
  </categories>
  <description>ついさっき、とあるプログラムを思いついたのでそのコーディングをしていた所、 便利なのに実装されていない*1関数を発見。 普通、map関数を複数リストで呼び出すと、同じインデックスのアイテム同士をprocedureで処理する。 この動作を拡張？して、「全てのリストの各単位に操作を行なう」関数を書いてみた。 実例を出せば、九九のリストを出力したいとき、(directmap * (iota 9) (iota 9))で処理できる関数。 大したコードではないけれども、メモを兼ねて。 (define directmap (lambda (proc L1 L2) (map (lambda (n) (map …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.3qe.us%2Fentry%2F20120326&quot; title=&quot; 全リストの全要素にprocedureを適用する関数 - Lambdaカクテル&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>2012-03-26 00:00:00</published>
  <title> 全リストの全要素にprocedureを適用する関数</title>
  <type>rich</type>
  <url>https://blog.3qe.us/entry/20120326</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
