Closed facebreeze closed 4 months ago
This is expected. nameOf(k)
will evaluate to "k"
.
To get your expected output, you could do this:
val paramMap = Map(
nameOf(yuv400) -> 'a',
nameOf(yuv420) -> 'b',
nameOf(yuv422) -> 'c',
nameOf(yuv444) -> 'd'
)
The nameOf mathod seems can not get correct key name string for the following code.
the result will be:
as my understanding, the print should be:
So the problem is why it can not get the desired name, or if I used it in a wrong way ?