Commits

Liam Staskawicz committed ccecab5

* use Map.addList instead of List.each

Comments (0)

Files changed (1)

fan/bson/BsonWriter.fan

     b.write(BsonType.ARRAY.val)
     writeCStr(b.out, key)
     m := Str:Obj?[:] { ordered = true }
-    list.each |val, i| { m[i.toStr] = val }
+    m.addList(list) |v, i->Str| { return i.toStr }
     writeObject(b, m)
   }