6

I want to merge two Maps. I can use Map.addAll method, but this method does not support deep merge. I want to use addAll for all Maps and equvivalent method for Lists inside. Recursive solution is not simple task for me and using JS iterop is dirty. Any solution?

Zdeněk Mlčoch
  • 722
  • 6
  • 17

1 Answers1

3

I have ported it for the Angular Dart UI project, but it's not yet properly tested (but in used in the Rating component)

https://github.com/akserg/angular.dart.ui/blob/master/lib/helper/extend.dart

will be moved shortly to

https://github.com/akserg/angular.dart.ui/blob/master/lib/utils/extend.dart

Günter Zöchbauer
  • 623,577
  • 216
  • 2,003
  • 1,567
  • Thx, good work. I've started to work on my own solution with strong typing and not breaking pointers to target, if possible. This work is a great inspiration. – Zdeněk Mlčoch Feb 03 '14 at 13:28