暗黙のパラメーターを持つ関数は次のとおりです。
def maxF(暗黙の i1: Int、暗黙の i2: Int) = i1 + i2
部分適用機能の取得maxF _
方法 と書くval f = maxF _
と文句を言うerror: could not find implicit value for parameter i1: Int
。
何か提案はありますか?
暗黙のパラメーターを持つ関数は次のとおりです。
def maxF(暗黙の i1: Int、暗黙の i2: Int) = i1 + i2
部分適用機能の取得maxF _
方法 と書くval f = maxF _
と文句を言うerror: could not find implicit value for parameter i1: Int
。
何か提案はありますか?