@@ -1,74 +1,57 @@
1−Elm.Main = Elm.Main || {};
1+var elm_lang$core$Main$_op = {};
2−Elm.Main.make = function (_elm) {
4− _elm.Main = _elm.Main || {};
6− return _elm.Main.values;
9− _U = _N.Utils.make(_elm),
10− _L = _N.List.make(_elm),
11− $moduleName = "Main";
12− var students = Elm.Native.Port.make(_elm).outbound("students",
2+var elm_lang$core$Main$students = Elm.Native.Port.make(_elm).outbound("students",
13− function (v) {
3+function (v) {
14− return Elm.Native.List.make(_elm).toArray(v).map(function (v) {
4+ return Elm.Native.List.make(_elm).toArray(v).map(function (v) {
15− return {name: v.name
5+ return {name: v.name,age: v.age};
22− var time = Elm.Native.Port.make(_elm).outbound("time",
27− var fortyTwo = Elm.Native.Port.make(_elm).outbound("fortyTwo",
32− var record = Elm.Native.Port.make(_elm).inbound("record",
33− "{ x : Float, y : Float }",
35− return typeof v === "object" && "x" in v && "y" in v ? {_: {}
36− ,x: typeof v.x === "number" ? v.x : _U.badPort("a number",
38− ,y: typeof v.y === "number" ? v.y : _U.badPort("a number",
39− v.y)} : _U.badPort("an object with fields `x`, `y`",
42− var array = Elm.Native.Port.make(_elm).inbound("array",
45− return typeof v === "object" && v instanceof Array ? Elm.Native.List.make(_elm).fromArray(v.map(function (v) {
46− return typeof v === "number" ? v : _U.badPort("a number",
48− })) : _U.badPort("an array",v);
50− var tuple = Elm.Native.Port.make(_elm).inbound("tuple",
53− return typeof v === "object" && v instanceof Array ? {ctor: "_Tuple2"
54− ,_0: typeof v[0] === "number" ? v[0] : _U.badPort("a number",
56− ,_1: typeof v[1] === "boolean" ? v[1] : _U.badPort("a boolean (true or false)",
57− v[1])} : _U.badPort("an array",
8+_utils.list([{_: {},age: 42,name: "Tom"}]));
9+var elm_lang$core$Main$time = Elm.Native.Port.make(_elm).outbound("time",
14+var elm_lang$core$Main$fortyTwo = Elm.Native.Port.make(_elm).outbound("fortyTwo",
60− var number = Elm.Native.Port.make(_elm).inbound("number",
19+var elm_lang$core$Main$record = Elm.Native.Port.make(_elm).inbound("record",
20+"{ x : Float, y : Float }",
22+ return typeof v === "object" && "x" in v && "y" in v ? {_: {}
23+ ,x: typeof v.x === "number" ? v.x : _U.badPort("a number",
25+ ,y: typeof v.y === "number" ? v.y : _U.badPort("a number",
26+ v.y)} : _U.badPort("an object with fields `x`, `y`",
29+var elm_lang$core$Main$array = Elm.Native.Port.make(_elm).inbound("array",
62− function (v) {
31+function (v) {
32+ return typeof v === "object" && v instanceof Array ? Elm.Native.List.make(_elm).fromArray(v.map(function (v) {
63 return typeof v === "number" ? v : _U.badPort("a number",
33 return typeof v === "number" ? v : _U.badPort("a number",
65− });
35+ })) : _U.badPort("an array",v);
37+var elm_lang$core$Main$tuple = Elm.Native.Port.make(_elm).inbound("tuple",
40+ return typeof v === "object" && v instanceof Array ? {ctor: "_Tuple2"
41+ ,_0: typeof v[0] === "number" ? v[0] : _U.badPort("a number",
43+ ,_1: typeof v[1] === "boolean" ? v[1] : _U.badPort("a boolean (true or false)",
44+ v[1])} : _U.badPort("an array",v);
46+var elm_lang$core$Main$number = Elm.Native.Port.make(_elm).inbound("number",
49+ return typeof v === "number" ? v : _U.badPort("a number",
66− var userID = Elm.Native.Port.make(_elm).inbound("userID",
52+var elm_lang$core$Main$userID = Elm.Native.Port.make(_elm).inbound("userID",
67− "String",
53+"String",
68− function (v) {
54+function (v) {
69− return typeof v === "string" || typeof v === "object" && v instanceof String ? v : _U.badPort("a string",
55+ return typeof v === "string" || typeof v === "object" && v instanceof String ? v : _U.badPort("a string",
72− _elm.Main.values = {_op: _op};
73− return _elm.Main.values;