Skip to content

Instantly share code, notes, and snippets.

Created May 22, 2015 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/fb95d20f0e34341b16ce to your computer and use it in GitHub Desktop.
Save anonymous/fb95d20f0e34341b16ce to your computer and use it in GitHub Desktop.
IPersistentMap<String, Integer> map = PersistentHashMap.<String, Integer> emptyMap();
for (int i = 0; i < num; i++) {
map = map.assoc("key" + i, i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment