All Downloads are FREE. Search and download functionalities are using the official Maven repository.

EOorg.EOeolang.EOcollections.EOmap$EOwith Maven / Gradle / Ivy

/*
 * This file was auto-generated by eolang-maven-plugin
 * on 2022-07-25T15:16:31.436Z. 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.915644Z by the compiler v.0.24.0.
 */

package EOorg.EOeolang.EOcollections;

import org.eolang.*;

//  
//   
//   
//    
//     
//   
//    
//     
//     
//   
//    
//     
//     
//   
//    
//     
//     
//     
//   
//    
//     
//     
//   
//    
//     
//     
//   
//    
//     
//     
//     
//   
//    
//     
//   
//    
//      
//        
//         
//       
//        
//         
//       
//     
//     
//   
//   
//   
//   
//   
//   
// 
@XmirObject(name = "map$with", oname = "with", source = "/home/r/repo/target/eo/04-pull/org/eolang/collections/map.eo")
public final class EOmap$EOwith extends PhDefault {
  public EOmap$EOwith(final Phi sigma) {
    super(sigma);
    this.add("key", new AtFree(/* default */));
    this.add("value", new AtFree(/* default */));
    this.add("mmp", new AtOnce(new AtComposite(this, rho -> {
      Phi ret = Phi.Φ.attr("org").get().attr("eolang").get().attr("collections").get().attr("multimap").get();
        ret = new PhLocated(ret, 40, 4);
      ret = new PhCopy(ret);
        Phi ret_1 = Phi.Φ.attr("org").get().attr("eolang").get().attr("array").get();
          ret_1 = new PhLocated(ret_1, 40, 13);
          Phi[] ret_1_a = new Phi[0];
          ret_1 = new PhWith(new PhCopy(ret_1), "Δ", new Data.Value(ret_1_a));
        ret = new PhWith(ret, 0, ret_1);
      ret = new PhConst(ret);
      return ret;
    })));
    this.add("new-pair", new AtOnce(new AtComposite(this, rho -> {
      Phi ret = Phi.Φ.attr("org").get().attr("eolang").get().attr("array").get();
        ret = new PhLocated(ret, 41, 4);
        Phi[] ret_a = new Phi[2];
        Phi ret_a0 = new PhMethod(rho, "key");
          ret_a0 = new PhLocated(ret_a0, 41, 6);
        ret_a[0] = ret_a0;
        Phi ret_a1 = new PhMethod(rho, "value");
          ret_a1 = new PhLocated(ret_a1, 41, 10);
        ret_a[1] = ret_a1;
        ret = new PhWith(new PhCopy(ret), "Δ", new Data.Value(ret_a));
      ret = new PhConst(ret);
      return ret;
    })));
    this.add("caa", new AtOnce(new AtComposite(this, rho -> {
      Phi ret_base = new PhMethod(rho, "mmp");
        ret_base = new PhLocated(ret_base, 42, 4);
      Phi ret = new PhMethod(ret_base, "concat-all-arrays");
        ret = new PhLocated(ret, 42, 7);
      ret = new PhCopy(ret);
        Phi ret_1 = new PhMethod(new PhMethod(rho, "σ"), "m");
          ret_1 = new PhLocated(ret_1, 42, 26);
        ret = new PhWith(ret, 0, ret_1);
      ret = new PhConst(ret);
      return ret;
    })));
    this.add("wcaa", new AtOnce(new AtComposite(this, rho -> {
      Phi ret_base = new PhMethod(rho, "mmp");
        ret_base = new PhLocated(ret_base, 43, 4);
      Phi ret = new PhMethod(ret_base, "without-in-list");
        ret = new PhLocated(ret, 43, 7);
      ret = new PhCopy(ret);
        Phi ret_1 = new PhMethod(rho, "key");
          ret_1 = new PhLocated(ret_1, 43, 24);
        Phi ret_2 = new PhMethod(rho, "caa");
          ret_2 = new PhLocated(ret_2, 43, 28);
        ret = new PhWith(ret, 0, ret_1);
        ret = new PhWith(ret, 1, ret_2);
      ret = new PhConst(ret);
      return ret;
    })));
    this.add("arr", new AtOnce(new AtComposite(this, rho -> {
      Phi ret_base = new PhMethod(rho, "wcaa");
        ret_base = new PhLocated(ret_base, 44, 4);
      Phi ret = new PhMethod(ret_base, "with");
        ret = new PhLocated(ret, 44, 8);
      ret = new PhCopy(ret);
        Phi ret_1 = new PhMethod(rho, "new-pair");
          ret_1 = new PhLocated(ret_1, 44, 14);
        ret = new PhWith(ret, 0, ret_1);
      ret = new PhConst(ret);
      return ret;
    })));
    this.add("harr", new AtOnce(new AtComposite(this, rho -> {
      Phi ret_base = new PhMethod(rho, "mmp");
        ret_base = new PhLocated(ret_base, 45, 4);
      Phi ret = new PhMethod(ret_base, "pairs-to-hash");
        ret = new PhLocated(ret, 45, 7);
      ret = new PhCopy(ret);
        Phi ret_1 = new PhMethod(rho, "arr");
          ret_1 = new PhLocated(ret_1, 45, 22);
        ret = new PhWith(ret, 0, ret_1);
      ret = new PhConst(ret);
      return ret;
    })));
    this.add("table", new AtOnce(new AtComposite(this, rho -> {
      Phi ret_base = new PhMethod(rho, "mmp");
        ret_base = new PhLocated(ret_base, 46, 4);
      Phi ret = new PhMethod(ret_base, "rebuild");
        ret = new PhLocated(ret, 46, 7);
      ret = new PhCopy(ret);
        Phi ret_1 = new PhMethod(rho, "harr");
          ret_1 = new PhLocated(ret_1, 46, 16);
        Phi ret_2 = new PhMethod(rho, "arr");
          ret_2 = new PhLocated(ret_2, 46, 21);
        ret = new PhWith(ret, 0, ret_1);
        ret = new PhWith(ret, 1, ret_2);
      ret = new PhConst(ret);
      return ret;
    })));
    this.add("mp", new AtOnce(new AtComposite(this, rho -> {
      Phi ret = Phi.Φ.attr("org").get().attr("eolang").get().attr("collections").get().attr("map").get();
        ret = new PhLocated(ret, 47, 4);
      ret = new PhCopy(ret);
        Phi ret_1 = new PhMethod(rho, "table");
          ret_1 = new PhLocated(ret_1, 47, 8);
        ret = new PhWith(ret, 0, ret_1);
      return ret;
    })));
    this.add("φ", new AtOnce(new AtComposite(this, rho -> {
      Phi ret = Phi.Φ.attr("org").get().attr("eolang").get().attr("seq").get();
        ret = new PhLocated(ret, 48, 4);
      ret = new PhCopy(ret);
        Phi ret_1_base_base = new PhMethod(rho, "mp");
          ret_1_base_base = new PhLocated(ret_1_base_base, 49, 7);
        Phi ret_1_base = new PhMethod(ret_1_base_base, "elements-amount");
          ret_1_base = new PhLocated(ret_1_base, 49, 9);
        Phi ret_1 = new PhMethod(ret_1_base, "write");
          ret_1 = new PhLocated(ret_1, 49, 26);
        ret_1 = new PhCopy(ret_1);
          Phi ret_1_1_base = new PhMethod(rho, "arr");
            ret_1_1_base = new PhLocated(ret_1_1_base, 49, 34);
          Phi ret_1_1 = new PhMethod(ret_1_1_base, "length");
            ret_1_1 = new PhLocated(ret_1_1, 49, 37);
          ret_1 = new PhWith(ret_1, 0, ret_1_1);
        Phi ret_2 = new PhMethod(rho, "mp");
          ret_2 = new PhLocated(ret_2, 50, 6);
        ret = new PhWith(ret, 0, ret_1);
        ret = new PhWith(ret, 1, ret_2);
      return ret;
    })));
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy