<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>omiend</author_name>
  <author_url>https://blog.hatena.ne.jp/omiend/</author_url>
  <blog_title>the industrial</blog_title>
  <blog_url>https://omiend.hatenablog.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>Scala</anon>
    <anon>PROGRAMMING</anon>
    <anon>WORK</anon>
  </categories>
  <description>突然ですが 先日、後輩くんがこんな実装をしました。 _nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] _divisible = _nums.select{ |n| n % 2 == 0 } p _divisible # [2, 4, 6, 8, 10] _multiplied = _divisible.map {|n| n * 100 } p _multiplied # [200, 400, 600, 800, 1000] 実際はプロダクト上に実装したコードと少し違いますが、要件としては「コレクションの中から該当するものだけにしぼり、処理を施して新しいコレクション…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fomiend.hatenablog.jp%2Fentry%2F2018%2F10%2F11%2F163200&quot; title=&quot;ScalaとRubyのコレクションで使える.mapについてちょっと調べてみた - the industrial&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>2018-10-11 16:32:00</published>
  <title>ScalaとRubyのコレクションで使える.mapについてちょっと調べてみた</title>
  <type>rich</type>
  <url>https://omiend.hatenablog.jp/entry/2018/10/11/163200</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
