We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02580b1 commit 2edc668Copy full SHA for 2edc668
1 file changed
core/src/main/java/fj/data/LazyString.java
@@ -316,6 +316,16 @@ public Stream<Character> f(final LazyString string) {
316
}
317
};
318
319
+ /**
320
+ * First-class conversion from lazy strings to String.
321
+ */
322
+ public static final F<LazyString, String> toString =
323
+ new F<LazyString, String>() {
324
+ public String f(final LazyString string) {
325
+ return string.toString();
326
+ }
327
+ };
328
+
329
/**
330
* First-class conversion from character streams to lazy strings.
331
*/
0 commit comments