OLD | NEW |
1 dart_library.library('map_keys', null, /* Imports */[ | 1 dart_library.library('map_keys', null, /* Imports */[ |
2 'dart_sdk' | 2 'dart_sdk' |
3 ], function load__map_keys(exports, dart_sdk) { | 3 ], function load__map_keys(exports, dart_sdk) { |
4 'use strict'; | 4 'use strict'; |
5 const core = dart_sdk.core; | 5 const core = dart_sdk.core; |
6 const math = dart_sdk.math; | 6 const math = dart_sdk.math; |
7 const dart = dart_sdk.dart; | 7 const dart = dart_sdk.dart; |
8 const dartx = dart_sdk.dartx; | 8 const dartx = dart_sdk.dartx; |
9 const map_keys = Object.create(null); | 9 const map_keys = Object.create(null); |
10 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); | 10 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
11 map_keys.main = function() { | 11 map_keys.main = function() { |
12 core.print(dart.map({'1': 2, '3': 4, '5': 6})); | 12 core.print(dart.map({'1': 2, '3': 4, '5': 6}, core.String, core.int)); |
13 core.print(dart.map([1, 2, 3, 4, 5, 6])); | 13 core.print(dart.map([1, 2, 3, 4, 5, 6], core.int, core.int)); |
14 core.print(dart.map({'1': 2, [dart.str`${dart.notNull(math.Random.new().next
Int(2)) + 2}`]: 4, '5': 6})); | 14 core.print(dart.map({'1': 2, [dart.str`${dart.notNull(math.Random.new().next
Int(2)) + 2}`]: 4, '5': 6}, core.String, core.int)); |
15 let x = '3'; | 15 let x = '3'; |
16 core.print(dart.map(['1', 2, x, 4, '5', 6])); | 16 core.print(dart.map(['1', 2, x, 4, '5', 6], core.String, core.int)); |
17 core.print(dart.map(['1', 2, null, 4, '5', 6])); | 17 core.print(dart.map(['1', 2, null, 4, '5', 6], core.String, core.int)); |
18 }; | 18 }; |
19 dart.fn(map_keys.main, VoidTodynamic()); | 19 dart.fn(map_keys.main, VoidTodynamic()); |
20 // Exports: | 20 // Exports: |
21 exports.map_keys = map_keys; | 21 exports.map_keys = map_keys; |
22 }); | 22 }); |
23 | 23 |
24 //# sourceMappingURL=map_keys.js.map | 24 //# sourceMappingURL=map_keys.js.map |
OLD | NEW |