We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4f60ce commit 36ce62aCopy full SHA for 36ce62a
exercises/roman-numerals/HINTS.md
@@ -0,0 +1,10 @@
1
+## Hints
2
+For something a little different you might also try a solution with an `unfold` function.
3
+You are probably already familiar with `foldLeft/Right`: "map" a whole collection into something else (usually a non-collection).
4
+`unfoldLeft/Right` are the "inverse" operations: "map" something (usually a non-collection) into a collection.
5
+So `unfold`ing is a logical addition to and part of the FP standard repertoire.
6
+
7
+This exercise can be seen as a case for `unfold`ing: "map" an `Int` into a `String` (which is of course implicitly a `Seq[Char]`).
8
9
+Unfortunately `unfoldLeft/Right` is not included in Scala's collection library.
10
+But you can take the implementation from [here](http://daily-scala.blogspot.de/2009/09/unfoldleft-and-right.html).
0 commit comments