<?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>Ruby</anon>
  </categories>
  <description>日本Rubyの会 公式Wiki - Ruby勉強会＠関西-17で添削していたバイナリツリーのプログラムを仕様の継承をあきらめて再設計したらどうなるかなと思ってやってみました。どことなく関数型のにおいがします。 module BinaryTree def to_tree(ns) ns.inject(Node.new) {|tree, n| tree &lt;&lt; n } end module_function :to_tree class Node def initialize(data = nil) @data = data @left = nil @right = nil end def &lt;&lt;(da…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fha-tan.hatenadiary.org%2Fentry%2F20070717%2F1184710486&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-07-17 07:14:46</published>
  <title> バイナリツリーの再設計</title>
  <type>rich</type>
  <url>https://ha-tan.hatenadiary.org/entry/20070717/1184710486</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
