added methods to set map entries from Iterator/Iterable and Function