ListUtil<T> extension

on

Methods

toMap<K, V>(Pair<K, V>? collector(T element)) Map<K, V>
Converts the list to Map. Use collector to convert each element to a key-value Pair, which represents a map entry.