<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tokuchan3515</author_name>
  <author_url>https://blog.hatena.ne.jp/tokuchan3515/</author_url>
  <blog_title>備忘録やめた</blog_title>
  <blog_url>https://tokuchan3515.hatenablog.com/</blog_url>
  <categories>
    <anon>Haskell</anon>
  </categories>
  <description>CとかRustにおいて%は剰余を意味するが，Haskellでは剰余を求めるのにmod関数を使う． で，Haskellでは%は使われないかと言われるとそうではなく，これは分数を構成する関数となっている．この関数はbase 4.16.1.0の時点でData.Ratioに含まれている．この関数はRatio a型の値を返す．この型は数値演算に関する基本的な型クラスを実装している． module Main ( main ) where import Data.Ratio main :: IO () main = do print $ 10 % 3 print $ (10 % 3) + (33 % 4) …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftokuchan3515.hatenablog.com%2Fentry%2F2022%2F03%2F25%2F161009&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>2022-03-25 16:10:09</published>
  <title>Haskellにおける`%`</title>
  <type>rich</type>
  <url>https://tokuchan3515.hatenablog.com/entry/2022/03/25/161009</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
