1

Here is a function with implicit parameters :

def maxF(implicit i1: Int, implicit i2: Int) = i1 + i2

How to obtain a partial applied function maxF _ . If you write val f = maxF _, it complain error: could not find implicit value for parameter i1: Int .

Any suggestiong ?

爱国者
  • 4,298
  • 9
  • 47
  • 66
  • 2
    You can't get different values with implicit parameters of the same type. – senia Sep 13 '13 at 09:23
  • See my answer [here](http://stackoverflow.com/a/18635935/334519). The problem is that eta expansion doesn't happen until after the implicit parameters have been applied. – Travis Brown Sep 13 '13 at 09:27

0 Answers0