<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>minazoko</author_name>
  <author_url>https://blog.hatena.ne.jp/minazoko/</author_url>
  <blog_title>Code Aquarium</blog_title>
  <blog_url>https://mnzk.hatenablog.com/</blog_url>
  <categories>
    <anon>Clojure-Py</anon>
    <anon>Clojure</anon>
    <anon>Python</anon>
  </categories>
  <description>●テキストファイルを読む 行単位で遅延リードしてテキスト処理。 ファイル終了判定は空文字列との一致判定。pythonのreadlineは行末に改行をくっつけたまま読み込むのでファイル終端でなけれな空行でも空文字列にはならない。 (defn repeatedly [f] (lazy-seq (cons (f) (repeatedly f)))) (defn file-content-seq [f] (-&gt;&gt; (repeatedly #(.readline f)) (take-while #(not= &quot;&quot; %)))) (defn proc-line [line] (format &quot;[%s]&quot; (…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmnzk.hatenablog.com%2Fentry%2F2012%2F12%2F25%2F001311&quot; title=&quot;Clojure-Pyでファイルリード - Code Aquarium&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>2012-12-25 00:13:11</published>
  <title>Clojure-Pyでファイルリード</title>
  <type>rich</type>
  <url>https://mnzk.hatenablog.com/entry/2012/12/25/001311</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
