Scala折叠vs Play!折

时间:2019-07-18 08:49:29

标签: scala

鳞片褶皱:

fold[A1 >: A](z: A1)(op: (A1, A1) ⇒ A1): A1

播放!折叠:

fold[E, A](state: A)(f: (A, E) ⇒ A): Iteratee[E, A]

出现在Play上方的签名! API折叠功能不再可用,在2.0和2.7版中我找不到它的签名。我试图了解Scala与Play的行为差异!折叠各自的方法签名。播放时,Scala折返返回类型A1。 fold返回Iteratee[E, A],但功能上有什么区别?

我已经搜索了Play!版本https://www.playframework.com/documentation/2.0.x/api/scala/index.html#packagehttps://www.playframework.com/documentation/2.7.x/api/scala/index.html,但我找不到

0 个答案:

没有答案