<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>k-1</author_name>
  <author_url>https://blog.hatena.ne.jp/k-1/</author_url>
  <blog_title>Fat Old Sun</blog_title>
  <blog_url>https://k-1.hatenablog.com/</blog_url>
  <categories>
    <anon>elixir</anon>
    <anon>erlang</anon>
  </categories>
  <description>Qlcモジュール erlangにはリスト内包表記でクエリを記述できるqlcモジュールというものが標準で付いており、それをelixirから利用するためのモジュールがQlcだ。hex.pmに登録してあるのでmix.exsにdepsするだけで利用できる。インストールしたのちの話だが、以下のように使うことができる。 iex&gt; require Qlc iex&gt; list = [a: 1, b: 2] iex&gt; &quot;[X || X = {K,V} &lt;- L, K =/= Item]&quot; |&gt; iex&gt; Qlc.q(L: list, K: :b) |&gt; iex&gt; Qlc.e() [a: 1] ところがこうはでき…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk-1.hatenablog.com%2Fentry%2F2018%2F12%2F15%2F122738&quot; title=&quot;マクロでerlang:qlcモジュールの妙な制限を撤廃する - Fat Old Sun&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>2018-12-15 12:27:38</published>
  <title>マクロでerlang:qlcモジュールの妙な制限を撤廃する</title>
  <type>rich</type>
  <url>https://k-1.hatenablog.com/entry/2018/12/15/122738</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
