Created
July 4, 2022 11:59
-
-
Save prolativ/44d4a0216389835e3325044d197395a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//> using scala "3.2.0-RC1" | |
//> using lib "org.scala-lang.modules::scala-xml:2.1.0" | |
trait Renderer[A]: | |
def render(x: A): xml.Elem | |
given Renderer[Int] with | |
def render(x: Int) = <td>{ x.toString }</td> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment