Package erjang

Examples of erjang.ESeq


    return new ETuple2(res, acc);
  }
 
  @BIF
  public static ESeq reverse(EObject hd, EObject tl) {
    ESeq res = tl.testSeq();
    ESeq front = hd.testSeq();
   
    if (res == null) throw ERT.badarg(hd, tl);
   
    return reverse(front, res);
  }
View Full Code Here


   
    return res;
  }
  @BIF
  public static EAtom member(EObject e, EObject l) {
    ESeq list = l.testSeq();
    if (list == null) throw ERT.badarg(e, l);

    while (!list.isNil()) {
      if (e.equals(list.head())) return ERT.TRUE;
      list = list.tail();
    }

    return ERT.FALSE;
  }
View Full Code Here

TOP

Related Classes of erjang.ESeq

Copyright © 2018 www.massapicom. 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.