Scala: An ASCII Sparkline chart function (source code)
Briefly

This function easily generates ASCII Sparkline charts in Scala, demonstrating the language's concise syntax and elegance for this particular task.
Implementing the body of the code as a Scala match expression is an alternative, but using if/then statements is considered more readable in this context.
Read at Alvinalexander
[
]
[
|
]