Package erjang

Examples of erjang.ESeq.tail()


        int index = 0;
        while (!seq.isNil()) {
          Object value = JavaObject.unbox(self, componentType, seq
              .head());
          Array.set(arr, index++, value);
          seq = seq.tail();
        }

        return arr;
      }
View Full Code Here


            vals = matcher.matching_values_coll(vals, coll.seq());
          }
        }
       
        int count = 0;
        for (; !vals.isNil(); vals = vals.tail()) {
          try {
            ETuple val = (ETuple) vals.head();
            key = val.elm(keypos1);
            IPersistentCollection coll = (IPersistentCollection) map.valAt(key);
View Full Code Here

    boolean read_concurrency = false;
    EInternalPID heir_pid = null;
    EObject heir_data = null;
    boolean is_named = false;

    for (; !opts.isNil(); opts = opts.tail()) {
      EObject option = opts.head();

      EAtom atom;
      ETuple2 t2;
      ETuple3 t3;
View Full Code Here

    ESeq res = select(caller, nameOrTid, matchSpec);
    int result = 0;
    while (!res.isNil()) {
      if (res.head() == ERT.TRUE)
        result += 1;
      res = res.tail();
    }
    return ERT.box(result);
  }

  @BIF static public ESeq select(EProc caller, EObject nameOrTid, EObject matchSpec) {
View Full Code Here

   
    ESeq seq;
    if ((seq=opts.testSeq()) != null) {
      while (!seq.isNil()) {
        table.setopt(seq.head());
        seq = seq.tail();
      }
    } else {
      table.setopt(opts);
    }
 
View Full Code Here

        }
      } else {
        throw ERT.badarg(obj, spec);
      }
     
      opts = opts.tail();
    }
   
    if (compression < 0 || compression > 9 || minor < 0 || minor > 1) {
      throw ERT.badarg(obj, spec);
    }
View Full Code Here

      throws Pausable {
    ESeq rargs = args.reverse();
    int len = args.length();
    switch(len) {   
    case 11:
      proc.arg10 = rargs.head(); rargs = rargs.tail();
    case 10:
      proc.arg9 = rargs.head(); rargs = rargs.tail();
    case 9:
      proc.arg8 = rargs.head(); rargs = rargs.tail();
    case 8:
View Full Code Here

    int len = args.length();
    switch(len) {   
    case 11:
      proc.arg10 = rargs.head(); rargs = rargs.tail();
    case 10:
      proc.arg9 = rargs.head(); rargs = rargs.tail();
    case 9:
      proc.arg8 = rargs.head(); rargs = rargs.tail();
    case 8:
      proc.arg7 = rargs.head(); rargs = rargs.tail();
    case 7:
View Full Code Here

    case 11:
      proc.arg10 = rargs.head(); rargs = rargs.tail();
    case 10:
      proc.arg9 = rargs.head(); rargs = rargs.tail();
    case 9:
      proc.arg8 = rargs.head(); rargs = rargs.tail();
    case 8:
      proc.arg7 = rargs.head(); rargs = rargs.tail();
    case 7:
      proc.arg6 = rargs.head(); rargs = rargs.tail();
    case 6:
View Full Code Here

    case 10:
      proc.arg9 = rargs.head(); rargs = rargs.tail();
    case 9:
      proc.arg8 = rargs.head(); rargs = rargs.tail();
    case 8:
      proc.arg7 = rargs.head(); rargs = rargs.tail();
    case 7:
      proc.arg6 = rargs.head(); rargs = rargs.tail();
    case 6:
      proc.arg5 = rargs.head(); rargs = rargs.tail();
    case 5:
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.