public override object __hx_invoke1_o(double __fn_float1, object __fn_dyn1)
 {
                 #line 93 "/my-component/src/persistence/MagLevConverter.hx"
     global::maglev.MagLevArray args = (((__fn_dyn1 == global::haxe.lang.Runtime.undefined)) ? (((global::maglev.MagLevArray)(((object)(__fn_float1))))) : (((global::maglev.MagLevArray)(__fn_dyn1))));
     global::haxe.lang.Function y    = ((global::haxe.lang.Function)(((object)(this.x))));
                 #line 95 "/my-component/src/persistence/MagLevConverter.hx"
     object haxeArgs = global::persistence.MagLevConverter.convertToHaxe(args);
     global::maglev.MagLevResult r = global::maglev.MagLevResult.createAsync();
                 #line 97 "/my-component/src/persistence/MagLevConverter.hx"
     y.__hx_invoke2_o(default(double), haxeArgs, default(double), new global::persistence.MagLevConverter_convertToMagLev_97__Fun(r));
                 #line 101 "/my-component/src/persistence/MagLevConverter.hx"
     return(r);
 }
Exemple #2
0
    public static B fold <A, B>(object it, global::haxe.lang.Function f, B first)
    {
                #line 184 "/opt/haxe/std/Lambda.hx"
        {
                        #line 184 "/opt/haxe/std/Lambda.hx"
            object x = ((object)(global::haxe.lang.Runtime.callField(it, "iterator", 328878574, null)));
                        #line 184 "/opt/haxe/std/Lambda.hx"
            while (global::haxe.lang.Runtime.toBool(global::haxe.lang.Runtime.callField(x, "hasNext", 407283053, null)))
            {
                                #line 184 "/opt/haxe/std/Lambda.hx"
                A x1 = global::haxe.lang.Runtime.genericCast <A>(global::haxe.lang.Runtime.callField(x, "next", 1224901875, null));
                first = global::haxe.lang.Runtime.genericCast <B>(f.__hx_invoke2_o(default(double), x1, default(double), first));
            }
        }

                #line 186 "/opt/haxe/std/Lambda.hx"
        return(first);
    }
Exemple #3
0
        public static object fold(object it, global::haxe.lang.Function f, object first)
        {
                        #line 184 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
            {
                                #line 184 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
                object x = ((object)(global::haxe.lang.Runtime.callField(it, "iterator", 328878574, null)));
                                #line 184 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
                while (global::haxe.lang.Runtime.toBool(global::haxe.lang.Runtime.callField(x, "hasNext", 407283053, null)))
                {
                                        #line 184 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
                    object x1 = ((object)(global::haxe.lang.Runtime.callField(x, "next", 1224901875, null)));
                    first = ((object)(f.__hx_invoke2_o(default(double), x1, default(double), first)));
                }
            }

                        #line 186 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
            return(first);
        }
Exemple #4
0
    public static global::Array <B> mapi <A, B>(object it, global::haxe.lang.Function f)
    {
                #line 79 "/opt/haxe/std/Lambda.hx"
        int i = 0;
        global::Array <B> _g = new global::Array <B>(new B[] {});
        {
                        #line 80 "/opt/haxe/std/Lambda.hx"
            object x = ((object)(global::haxe.lang.Runtime.callField(it, "iterator", 328878574, null)));
                        #line 80 "/opt/haxe/std/Lambda.hx"
            while (global::haxe.lang.Runtime.toBool(global::haxe.lang.Runtime.callField(x, "hasNext", 407283053, null)))
            {
                                #line 80 "/opt/haxe/std/Lambda.hx"
                A x1 = global::haxe.lang.Runtime.genericCast <A>(global::haxe.lang.Runtime.callField(x, "next", 1224901875, null));
                                #line 80 "/opt/haxe/std/Lambda.hx"
                _g.push(global::haxe.lang.Runtime.genericCast <B>(f.__hx_invoke2_o(((double)(i++)), global::haxe.lang.Runtime.undefined, default(double), x1)));
            }
        }

                #line 80 "/opt/haxe/std/Lambda.hx"
        return(_g);
    }
Exemple #5
0
        public static global::haxe.root.Array mapi(object it, global::haxe.lang.Function f)
        {
                        #line 79 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
            int i = 0;
            global::haxe.root.Array _g = new global::haxe.root.Array(new object[] {});
            {
                                #line 80 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
                object x = ((object)(global::haxe.lang.Runtime.callField(it, "iterator", 328878574, null)));
                                #line 80 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
                while (global::haxe.lang.Runtime.toBool(global::haxe.lang.Runtime.callField(x, "hasNext", 407283053, null)))
                {
                                        #line 80 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
                    object x1 = ((object)(global::haxe.lang.Runtime.callField(x, "next", 1224901875, null)));
                                        #line 80 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
                    _g.push(((object)(f.__hx_invoke2_o(((double)(i++)), global::haxe.lang.Runtime.undefined, default(double), x1))));
                }
            }

                        #line 80 "C:\\HaxeToolkit\\haxe\\std\\Lambda.hx"
            return(_g);
        }