lihaoyi / hands-on-scala-js

Better documentation for Scala.js
142 stars 52 forks source link

Format clock numbers to is always 2 positions #37

Closed diversit closed 5 years ago

diversit commented 8 years ago

Now n < 10 get prefixed with '0'. Whereas before a time would be displayed as '1:2:3', it is now shown as '01:02:03'. It also nicely demonstrates how you can still use Scala collection api methods like 'map'.

adamvoss commented 7 years ago

Merged by 5372c7532941c2f6901c43e2718025575b95b23a in #43