Package erjang

Examples of erjang.ESeq.cons()


    ESeq l = ERT.NIL;
    EInteger val = end;
    EInteger first = start;
   
    while (val.is_ge(first)) {
      l = l.cons(val);
      val = val.dec();
    }
   
    return l;
   
View Full Code Here


  }

  public static ESeq xregsSeq(EObject[] reg, int arity) {
    ESeq res = ERT.NIL;
    for (int i=arity-1; i>=0; i--) {
      res = res.cons(reg[i]);
    }
    return res;
  }

  public static EObject[] xregsArray(EObject[] reg, int arity) {
View Full Code Here

      list = list.tail();
    }
   
    ESeq res = ERT.NIL;
    for (int i = map.size()-1; i >= 0; i--) {
      res = res.cons(map.get(i));
    }
   
    return new ETuple2(res, acc);
  }
 
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.