opaque type LowerCased = String
object LowerCased:
def apply(s: String): LowerCased = s.toLowerCase(Locale.US)
given Conversion[LowerCased, String] with
inline def apply(lc: LowerCased): String = lc
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter