Package erjang

Examples of erjang.ECons.head()


  private static void collectList(EObject list, ECons iol, OutputStream barr) throws IOException {
    EObject tail;
    ECons cons;
    for (tail=iol; (cons = tail.testNonEmptyList()) != null; tail = cons.tail()) {
      EObject hd = cons.head();

      ESmall sm;
      EBinary bi;
      ECons co;
      if ((sm = hd.testSmall()) != null) {
View Full Code Here


  @BIF
  static public EObject hd(EObject cell) {
    ECons cons;
    if ((cons = cell.testNonEmptyList()) != null) {
      return cons.head();
    }
    throw ERT.badarg(cell);
  }

  @BIF
View Full Code Here

  @BIF(type = Type.GUARD, name = "hd")
  static public EObject hd$p(EObject cell) {
    ECons cons;
    if ((cons = cell.testNonEmptyList()) != null) {
      return cons.head();
    }
    return null;
  }

  @BIF(type = Type.GUARD, name = "tl")
View Full Code Here

      throw ERT.badarg();

    for (; settings != null && !settings.isNil(); settings = settings
        .tail().testCons()) {

      EObject val = settings.head();
      ETuple tup;
      if ((tup = val.testTuple()) != null) {
        ETuple2 tup2;
        if ((tup2 = ETuple2.cast(tup)) != null) {
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.