<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ps1</author_name>
  <author_url>https://blog.hatena.ne.jp/ps1/</author_url>
  <blog_title>潜在推力</blog_title>
  <blog_url>https://ps1.hatenadiary.org/</blog_url>
  <categories>
    <anon>PS2.0CTP</anon>
  </categories>
  <description>PowerShellのスクリプトブロックは全然クロージャではない、ということに気付きました。そもそも、何故クロージャだと思い込んでいたのかが謎ですが……。レキシカルクロージャ(笑)ではない、というのが正しいでしょうか。よくわからないですが……。 function fa(){ $func_array = @() 1..10 | % { $i = $_ $func_array += { return $i } } return $func_array } fa | % { &amp; $_ } 1から10までの数を返すスクリプトブロックを作って配列に入れたもの、を返す関数、を作り、返ってきたスクリプトブロ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fps1.hatenadiary.org%2Fentry%2F20080313%2F1205421158&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>2008-03-13 00:12:38</published>
  <title>スクリプトブロックはクロージャではない</title>
  <type>rich</type>
  <url>https://ps1.hatenadiary.org/entry/20080313/1205421158</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
