Examples of head()


Examples of erjang.ESeq.head()

    case 7:
      self.arg6 = a.head(); a = a.tail();
    case 6:
      self.arg5 = a.head(); a = a.tail();
    case 5:
      self.arg4 = a.head(); a = a.tail();
    case 4:
      self.arg3 = a.head(); a = a.tail();
    case 3:
      self.arg2 = a.head(); a = a.tail();
    case 2:
View Full Code Here

Examples of erjang.ESeq.head()

    case 6:
      self.arg5 = a.head(); a = a.tail();
    case 5:
      self.arg4 = a.head(); a = a.tail();
    case 4:
      self.arg3 = a.head(); a = a.tail();
    case 3:
      self.arg2 = a.head(); a = a.tail();
    case 2:
      self.arg1 = a.head(); a = a.tail();
    case 1:
View Full Code Here

Examples of erjang.ESeq.head()

    case 5:
      self.arg4 = a.head(); a = a.tail();
    case 4:
      self.arg3 = a.head(); a = a.tail();
    case 3:
      self.arg2 = a.head(); a = a.tail();
    case 2:
      self.arg1 = a.head(); a = a.tail();
    case 1:
      self.arg0 = a.head(); // a = a.tail();
    case 0:
View Full Code Here

Examples of erjang.ESeq.head()

      ESeq input = arg.testSeq();
      List<Byte> bytes = new ArrayList<Byte>();
      byte[] out;
     
      while (!input.isNil()) {
        Integer el = input.head().testSmall().intValue();
        bytes.add(el.byteValue());
        input = input.tail();
      }
      out = new byte[bytes.size() + 1];
      for (int i = 0; i < bytes.size(); ++i) {
View Full Code Here

Examples of erjang.ESeq.head()

      ESeq arg_seq) throws IllegalArgumentException {
    Object[] out = new Object[arg_types.length];

    ESeq as_iter = arg_seq;
    for (int i = 0; i < arg_types.length; i++) {
      out[i] = JavaObject.unbox(self, arg_types[i], as_iter.head());
      as_iter = as_iter.tail();
    }

    return out;
  }
View Full Code Here

Examples of erjang.ESeq.head()

        Class<?> componentType = type.getComponentType();
        Object arr = Array.newInstance(componentType, length);

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

Examples of erjang.ESeq.head()

        }
       
        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);

            if (coll instanceof IPersistentSet) {
              IPersistentSet set = (IPersistentSet) coll;
View Full Code Here

Examples of erjang.ESeq.head()

    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;
      if ((atom = option.testAtom()) != null) {
View Full Code Here

Examples of erjang.ESeq.head()

  @BIF static public ESmall select_count(EProc caller, EObject nameOrTid, EObject matchSpec) {
    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);
  }
View Full Code Here

Examples of erjang.ESeq.head()

    }
   
    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
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.