<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ugnom</author_name>
  <author_url>https://blog.hatena.ne.jp/ugnom/</author_url>
  <blog_title>むずかしめのパソコン勉強の記録</blog_title>
  <blog_url>https://ugnom.hatenablog.com/</blog_url>
  <categories>
    <anon>Haskell</anon>
    <anon>すごいHaskellたのしく学ぼう</anon>
  </categories>
  <description>第４章の続き。 前の： http://ugnom.hatenablog.com/entry/2013/12/30/131136 再帰の練習です。takeある配列の最初の第一引数の数だけ取り出す。 ついでに、最後から指定数だけ取るのも作ってみました。 take' :: Int -&gt; [a] -&gt; [a] take' n (x:xs) | n &lt;= 0 = [] | otherwise = x : take' (n-1) xs takeLast :: Int -&gt; [a] -&gt; [a] takeLast _ [] = [] takeLast n l@(x:xs) | n &gt;= length l =…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fugnom.hatenablog.com%2Fentry%2F2014%2F01%2F02%2F091433&quot; title=&quot;すごいHaskellたのしく学ぼう　第４章　再帰の練習 その２ - むずかしめのパソコン勉強の記録&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>2014-01-02 09:14:33</published>
  <title>すごいHaskellたのしく学ぼう　第４章　再帰の練習 その２</title>
  <type>rich</type>
  <url>https://ugnom.hatenablog.com/entry/2014/01/02/091433</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
