Literate programming in Scala

February 16, 2019

val x: Int = 6
val y: Int = 7
val z: Int = x * y
println(s"z: ${z}")
$ curl https://earldouglas.com/posts/reference/literate/scala.md |
  codedown scala |
  xargs -0 scala -e
z: 42