EOorg.EOeolang.EOswitch$EOarr Maven / Gradle / Ivy
/*
* This file was auto-generated by eolang-maven-plugin
* on 2022-07-25T15:16:33.726Z. Don't edit it,
* your changes will be discarded on the next build.
*
* The EO sources were compiled to XMIR on
* 2022-07-25T15:15:45.995606Z by the compiler v.0.24.0.
*/
package EOorg.EOeolang;
import org.eolang.*;
//
//
//
//
//
//
//
//
//
//
//
//
//
@XmirObject(name = "switch$arr", oname = "arr", source = "/home/r/repo/target/eo/04-pull/org/eolang/switch.eo")
public final class EOswitch$EOarr extends PhDefault {
public EOswitch$EOarr(final Phi sigma) {
super(sigma);
this.add("φ", new AtOnce(new AtComposite(this, rho -> {
Phi ret_base = Phi.Φ.attr("org").get().attr("eolang").get().attr("collections").get().attr("list").get();
ret_base = new PhLocated(ret_base, 54, 14);
ret_base = new PhCopy(ret_base);
Phi ret_base_1 = new PhMethod(new PhMethod(rho, "σ"), "cases");
ret_base_1 = new PhLocated(ret_base_1, 55, 16);
ret_base = new PhWith(ret_base, 0, ret_base_1);
Phi ret = new PhMethod(ret_base, "reduce");
ret = new PhLocated(ret, 53, 12);
ret = new PhCopy(ret);
Phi ret_1 = Phi.Φ.attr("org").get().attr("eolang").get().attr("array").get();
ret_1 = new PhLocated(ret_1, 56, 14);
Phi[] ret_1_a = new Phi[0];
ret_1 = new PhWith(new PhCopy(ret_1), "Δ", new Data.Value(ret_1_a));
Phi ret_2 = new EOswitch$EOarr$EOt0$EOa2(rho);
ret_2 = new PhLocated(ret_2, 57, 14);
ret = new PhWith(ret, 0, ret_1);
ret = new PhWith(ret, 1, ret_2);
return ret;
})));
}
}