<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>katona</author_name>
  <author_url>https://blog.hatena.ne.jp/katona/</author_url>
  <blog_title>MEMO:はてな支店</blog_title>
  <blog_url>https://katona.hatenadiary.org/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>ゲーム「ぷよぷよ」で、フィールドの状態がテキストで与えられたとき、消える「ぷよ」を消して次のフィールドの状態を出力するプログラムを書け。 http://okajima.air-nifty.com/b/2011/01/2011-ffac.html 前回書いたHaskell版のアルゴリズムのままJavaScriptに移植してみた。 const partition = (f,xs) =&gt; xs.reduce(([y,z],x) =&gt; f(x) ? [[...y,x],z] : [y,[...z,x]],[[],[]]) const cat = (x,[ok,ng]) =&gt; [[x,...ok.fla…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkatona.hatenadiary.org%2Fentry%2F2023%2F01%2F12%2F085216&quot; title=&quot;ぷよぷよ19連鎖JavaScript版 - MEMO:はてな支店&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>2023-01-12 08:52:16</published>
  <title>ぷよぷよ19連鎖JavaScript版</title>
  <type>rich</type>
  <url>https://katona.hatenadiary.org/entry/2023/01/12/085216</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
