collectMap collects every element emitted by a Flux into a Mono containing a Map. A supplied function computes each key, while the element becomes its value. section 11.3.3
Group animal names by first letter
A Flux containing "aardvark", "elephant", "koala", "eagle", and "kangaroo" becomes a Mono<Map<Character, String>> with collectMap(a -> a.charAt(0)). The final entries are a→aardvark, e→eagle, and k→kangaroo. When keys repeat, the last element replaces the earlier entry.
