Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void addToListInMap(K, V)(V[][K] map, K key, V value)
- {
- if (key in map) {
- map[key] = map[key] ~ value;
- } else {
- map[key] = [value];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement