I want to translate a List of objects into a Map using Java 8\'s streams and lambdas.
This is how I would write it in Java 7 and below.
private Map&l
As an alternative to guava one can use kotlin-stdlib
guava
private Map nameMap(List choices) { return CollectionsKt.associateBy(choices, Choice::getName); }