Sha256: 33970e66773888091d10d95886f1ca1270b824647372af6e9db1ccf3526c5dc2

Contents?: true

Size: 954 Bytes

Versions: 110

Compression:

Stored size: 954 Bytes

Contents

## Hints
For this exercise two Scala features come in handy:
- [Default Parameter Values](http://docs.scala-lang.org/tutorials/tour/default-parameter-values.html)
- [String Interpolation](http://docs.scala-lang.org/overviews/core/string-interpolation.html)

#### Common pitfalls that you should avoid
- `null` is usually not considered a valid value in Scala, and there are no `null` checks needed (if you don't have to interface with Java code, say). Instead there is the [Option](http://danielwestheide.com/blog/2012/12/19/the-neophytes-guide-to-scala-part-5-the-option-type.html) type if you want to express the possible absence of a value. But for this exercise just assume a normal non-`null` String parameter.
- Usually there is no need in Scala to use `return`. For a discussion see [here](http://stackoverflow.com/questions/24856106/return-in-a-scala-function-literal). Or as a quote from that discussion: *Don't use return, it makes Scala cry.*

Version data entries

110 entries across 110 versions & 1 rubygems

Version Path
trackler-2.0.8.15 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.8.14 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.8.13 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.8.12 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.8.11 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.8.10 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.8.9 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.8.8 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.8.7 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.8.6 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.8.5 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.8.4 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.8.3 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.8.2 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.8.1 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.7.0 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.6.44 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.6.43 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.6.42 tracks/scala/exercises/hello-world/HINTS.md
trackler-2.0.6.41 tracks/scala/exercises/hello-world/HINTS.md