Try this: Map(entities.map{e => e.id -> e}:_*)
Explicitly typing it as a varargs using :_*
seems to work.
Or this should work too:
entities.map{e => e.id -> e} toMap
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With