Skip to content

Commit abe1371

Browse files
committed
add more info to readme
1 parent bd3b8c0 commit abe1371

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,13 @@ is needed. You can just write:
9898
```scala
9999
import scala.util.chaining.*
100100

101-
5.pipe(_ + 1).pipe(n => s"The number is $n").tap(println)
101+
"Hello World"
102+
.toCharArray
103+
.map(_.toInt)
104+
.sum
105+
.pipe(n => s"The number is $n")
106+
.pipe(println) // prints "The number is 1052"
107+
```
102108
// output: "The number is 6"
103109
```
104110
/ad-break

0 commit comments

Comments
 (0)