<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>Scala</anon>
  </categories>
  <description>stackoverflow.com scala&gt; val a = 4 a: Int = 4 scala&gt; f&quot;${a}%04d&quot; res0: String = 0004 こんな感じ。2.10からの技。 文字列リテラルの先頭に f を追加することで、他の言語での printf のような簡単な書式付き文字列を作ることができる。f 補間子を使った場合は、全ての変数参照は %d のように printf 形式の書式を指定する必要がある。 文字列の補間 - Scala Documentation</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2Fscala_like_padding&quot; title=&quot;Scalaでパディングのようなものをする - by shigemk2&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>2015-11-07 15:40:55</published>
  <title>Scalaでパディングのようなものをする</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/scala_like_padding</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
