<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>plarail_hangout</author_name>
  <author_url>https://blog.hatena.ne.jp/plarail_hangout/</author_url>
  <blog_title>Engineering Tech Dojo</blog_title>
  <blog_url>https://tech.fun-toy-life.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>Ruby 配列の変換・集計：map・inject・flat_map の使い方 配列を別の形に変換したり、合計・グループ化したりするには map・inject・flat_map を使います。 早わかりまとめ メソッド 戻り値 向いている用途 map / collect 配列 各要素を変換した新しい配列を作る inject / reduce 任意の値 配列を1つの値に集計する flat_map 配列 変換しながら1階層フラット化する flatten 配列 ネストした配列を平坦にする group_by ハッシュ 条件でグループ化する tally ハッシュ 要素の出現回数を数える sum 数値 合計を…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.fun-toy-life.com%2Fentry%2F2026%2F06%2F30%2F215323&quot; title=&quot;Ruby 配列の変換・集計：map・inject・flat_map の使い方 - Engineering Tech Dojo&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>2026-06-30 21:53:23</published>
  <title>Ruby 配列の変換・集計：map・inject・flat_map の使い方</title>
  <type>rich</type>
  <url>https://tech.fun-toy-life.com/entry/2026/06/30/215323</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
