Sha256: 9cdc6f770ea2fcc3d1457d61de08d947fcb53aa1bd0a8d504cf2e7367cbc4041
Contents?: true
Size: 593 Bytes
Versions: 368
Compression:
Stored size: 593 Bytes
Contents
## Hints For simplicity and readability: Consider using the Scala collection functions instead of Java's `String` methods. Remember that in Scala a `String` is implicitly also a `Seq[Char]`, so you can call them as easily as the `String` methods. Some examples: - `filter` instead of `replaceAll` - `take`, `takeRight`, `drop`, `head`, `tail` instead of `substring` Another idea worth exploring might be to change the `String` into a `List[Char]` and then use [pattern matching](http://alvinalexander.com/scala/how-to-use-lists-nil-cons-scala-match-case-expressions) with the `::` operator.
Version data entries
368 entries across 368 versions & 1 rubygems