<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>faith_and_brave</author_name>
  <author_url>https://blog.hatena.ne.jp/faith_and_brave/</author_url>
  <blog_title>Faith and Brave - C++で遊ぼう</blog_title>
  <blog_url>https://faithandbrave.hateblo.jp/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>ちょっと前に id:uskz 先生に「PStade.OvenはtakenWhileからtakenを定義してるから、Haskellでもできるんじゃないですか」とネタ振りしてたので、書いてみました。 インデックスのリストと一緒にループして、インデックスと比較する述語をxxxWhileに渡します。 インデックスリストは結果としていらないので、最後にインデックスを除いたリストを抽出。 take。 take2 :: Int -&gt; [a] -&gt; [a] take2 n xs = map snd (takeWhile (preds n) (zxs xs)) where zxs xs = zip (enumF…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffaithandbrave.hateblo.jp%2Fentry%2F20110912%2F1315809747&quot; title=&quot; takeWhileでtake、dropWhileでdropを定義する - Faith and Brave - C++で遊ぼう&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>2011-09-12 15:42:27</published>
  <title> takeWhileでtake、dropWhileでdropを定義する</title>
  <type>rich</type>
  <url>https://faithandbrave.hateblo.jp/entry/20110912/1315809747</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
