Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

All snippets
Create a snippet
Full search

Quick search:


Editing Snippet ID: #1001695
Snippet name:
Category, Type:
Content:
static HashMap litmap(O... x) { new HashMap map; litmap_impl(map, x); ret map; } static void litmap_impl(Map map, O... x) { if (x != null) for (int i = 0; i < x.length-1; i += 2) if (x[i+1] != null) map.put(x[i], x[i+1]); }
Comment:
Public (visible to everyone):
Created: 2015-11-05 16:06:46

This page without fancy editor.