3 ms·
Doesn’t a monad or for comprehension use implicits to find the right CanBuildFrom? Are you suggesting to use scala without using for comprehensions? Or do you
by diroussel 5y ago
Doesn’t a monad or for comprehension use implicits to find the right CanBuildFrom?
Are you suggesting to use scala without using for comprehensions? Or do you mean you don’t need to write your own?
It’s been a long time since I wrote scala, so may be getting it wrong.
- joshlemer 5y agoCanBuildFrom is gone in the 2.13 collections rewrite
- valenterry 5y agoNo it does not. A for-comprehension just requires that map/flatMap methods are available. No implicits or CanBuildFrom needed.