public static < K , V > Map < K , V > dict ( Pair < K , V > ... array ) { final Function < Iterator < Pair < K , V > > , HashMap < K , V > > consumer = new ConsumeIntoMap <> ( new HashMapFactory < K , V > ( ) ) ; return consumer . apply ( new ArrayIterator <> ( array ) ) ; }
Yields all element of the array in a map .