<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shuzo_kino</author_name>
  <author_url>https://blog.hatena.ne.jp/shuzo_kino/</author_url>
  <blog_title>Bye Bye Moore</blog_title>
  <blog_url>https://shuzo-kino.hateblo.jp/</blog_url>
  <categories>
    <anon>livescript</anon>
  </categories>
  <description>prelude.ls記事の続き、今回はリストから条件に一致する要素を抽出する関数です 実際のところ 引数なし 引数なしで手っ取り早く使う関数はhead、tail、initialがあります。 それぞれ、先頭一個、先頭を除いたもの、末尾一個を除いたものを返します。 head [1 to 5] #=&gt; 1 tail [1 to 5] #=&gt; [2, 3, 4, 5] initial [1 to 5] #=&gt; [1, 2, 3, 4]任意個数を引っ張り出す関数もあります。 takeは先頭から指定個数を、dropは指定個数を弾いたものを返します。 take 2 [1 to 5] #=&gt; [1, 2] d…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2015%2F11%2F17%2F235514&quot; title=&quot;livescriptを更に闇深く。prelude.lsで関数型の深淵を覗き見る　その４：リスト・要素抽出編 - Bye Bye Moore&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>2015-11-17 23:55:14</published>
  <title>livescriptを更に闇深く。prelude.lsで関数型の深淵を覗き見る　その４：リスト・要素抽出編</title>
  <type>rich</type>
  <url>https://shuzo-kino.hateblo.jp/entry/2015/11/17/235514</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
