File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ final class ChainingOps[A](val self: A) extends AnyVal {
33
33
* // i == 24
34
34
* }}}
35
35
*
36
+ * Note: `(1 - 2 - 3).pipe(times6)` may have a small amount of overhead at
37
+ * runtime compared to the equivalent `{ val temp = 1 - 2 - 3; times6(temp) }`.
38
+ *
36
39
* @param f the function to apply to the value.
37
40
* @tparam B the result type of the function `f`.
38
41
* @return a new value resulting from applying the given function
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ package object util {
4
4
/**
5
5
* Adds chaining methods `tap` and `pipe` to every type. See [[ChainingOps ]].
6
6
*/
7
- object chainingOps extends ChainingSyntax
7
+ object chaining extends ChainingSyntax
8
8
}
You can’t perform that action at this time.
0 commit comments