<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>t-hom</author_name>
  <author_url>https://blog.hatena.ne.jp/t-hom/</author_url>
  <blog_title>t-hom’s diary</blog_title>
  <blog_url>https://thom.hateblo.jp/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>今回はVBAネタではない。とあるブログにmapとeachで混乱したと書かれていたので、ちょっとネットで調べてみたところ、結構違いがわからないという意見もある模様。VBAにmapに相当する機能は無いけれど、一般的なプログラミングの知識として役立つかなと思ったので紹介しておこうと思う。関数型言語には、map関数というものがある。 これはマッピング、つまり「対応付け」を行う関数である。ある集合Aに対し、関数Xを対応付けた別の集合Bを作るという使い方をする。例えば整数のリスト[1 2 3 4 5 6 7 8 9]に対し、引数に+1して返す関数をマッピングすると、 [2 3 4 5 6 7 8 9 10…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthom.hateblo.jp%2Fentry%2F2015%2F10%2F06%2F001951&quot; title=&quot;関数型言語　MAPとは何か - t-hom’s diary&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>2015-10-06 00:19:51</published>
  <title>関数型言語　MAPとは何か</title>
  <type>rich</type>
  <url>https://thom.hateblo.jp/entry/2015/10/06/001951</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
