Implicit keyword before a parameter in anonymous function in Scala

后端 未结 3 517
北海茫月
北海茫月 2020-11-29 04:37

I understand implicit parameters and implicit conversions in Scala but I saw this for the first time today: the implicit keyword in front of a parameter in an anonymous func

3条回答
  •  时光取名叫无心
    2020-11-29 05:25

    Found a few resources:

    https://issues.scala-lang.org/browse/SI-1492

    https://stackoverflow.com/a/5015161/480674

    search for "Implicit arguments in closures" on the second link

提交回复
热议问题