src/main/java/org/organicdesign/fp/StaticImports.java
@SafeVarargs
    public static <K,V> ImMap<K,V> map(Map.Entry<K,V>... kvPairs) {
        if ( (kvPairs == null) || (kvPairs.length < 1) ) { return PersistentHashMap.empty(); }
        return PersistentHashMap.of(Arrays.asList(kvPairs));
    }
@SafeVarargs
    public static <K,V> ImMap<K,V> map(Map.Entry<K,V>... kvPairs) {
        if ( (kvPairs == null) || (kvPairs.length < 1) ) { return PersistentHashMap.empty(); }
        return PersistentHashMap.of(Arrays.asList(kvPairs));
    }
@ SafeVarargs public static < K , V > ImMap < K , V > map ( Map . Entry < K , V > ... kvPairs ) { if ( ( kvPairs == null ) || ( kvPairs . length < 1 ) ) { return PersistentHashMap . empty ( ) ; } return PersistentHashMap . of ( Arrays . asList ( kvPairs ) ) ; }
Returns a new PersistentHashMap of the given keys and their paired values.  Use the
{@link StaticImports#tup(Object, Object)} method to define those key/value pairs briefly and
easily.  This data definition method is one of the few methods in this project that support
varargs.

@param kvPairs Key/value pairs (to go into the map).  In the case of a duplicate key, later
values in the input list overwrite the earlier ones.  The resulting map can contain zero or one
null key and any number of null values.  Null k/v pairs will be silently ignored.

@return a new PersistentHashMap of the given key/value pairs
Returns a new PersistentHashMap of the given keys and their paired values . Use the { @link StaticImports#tup ( Object Object ) } method to define those key / value pairs briefly and easily . This data definition method is one of the few methods in this project that support varargs .