What's the purpose of Function.const?
-
30-10-2019 - |
문제
It is in ScalaDoc but without much documentation. It seems that it always returns the first parameter.
Function.const(1)(2)
for instance returns 1
.
Why does it exist and why is it useful?
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow