Examples of seq()


Examples of clojure.lang.IPersistentSet.seq()

        throw new KissException("Mismatched dependencies for symbol: "+key+" free="+free+" deps="+ds);
      }
     
      // check unbound dependencies are consistent
      IPersistentSet unbound=m.getUnbound();
      for (ISeq s=unbound.seq(); s!=null; s=s.next()) {
        Symbol sym=(Symbol)s.first();
        if (isBound(sym)) throw new KissException("Expected symbol to be unbound: "+sym);
      }
     
      // check reverse dependencies
View Full Code Here

Examples of clojure.lang.PersistentHashSet.seq()

  }
 
  @Override
  public Type intersection(Type t) {
    PersistentHashSet values=this.values;
    ISeq s=values.seq();
    while(s!=null) {
      Object o=s.first();
      if (!t.checkInstance(o)) {
        values=(PersistentHashSet) values.disjoin(o);
      }
View Full Code Here

Examples of clojure.tools.nrepl.Connection.Response.seq()

              Response r = safeToolConnection.send(10000, "op", "describe");
              // working around the fact that nREPL < 0.2.0-beta9 does *not* send a
              // :done status when an operation is unknown!
              // TODO remove this and just check r.statuses() after we can assume usage
              // of later versions of nREPL
              Object status = ((Map<String, String>)r.seq().first()).get(Keyword.intern("status"));
              if (clojure.lang.Util.equals(status, "unknown-op") || (status instanceof Collection &&
                      ((Collection)status).contains("error"))) {
                  CCWPlugin.logError("Invalid response to \"describe\" request");
                  describeInfo = new HashMap();
              } else {
View Full Code Here

Examples of com.trifork.clj_ds.IPersistentCollection.seq()

      Map<EObject, IPersistentCollection> map) {
   
    for (Map.Entry<EObject, IPersistentCollection> ent : map.entrySet()) {

      IPersistentCollection values = ent.getValue();
      for (ISeq seq = values.seq(); seq != null; seq = seq.next()) {
        ETuple val = (ETuple) seq.first();
        if (matches(val)) {
          vals = vals.cons(val);
        }
      }
View Full Code Here

Examples of com.trifork.clj_ds.IPersistentCollection.seq()

        map = map.next();
        collent = (IMapEntry) map.first();
        c = (IPersistentCollection) collent.getValue();
      }
     
      coll = c.seq();
      map_seq = map.next();
    }
   
    ELSeq(ISeq coll, ISeq map_seq) {
      this.coll = coll;
View Full Code Here

Examples of com.trifork.clj_ds.IPersistentCollection.seq()

  protected ESeq lookup(EObject key) {
    IPersistentMap ipm = deref();
    IPersistentCollection set = (IPersistentCollection) ipm.valAt(key);
    ESeq res = ERT.NIL;
    if (set == null) return res;
    for(ISeq s = set.seq(); s != null; s = s.next())
    {
      res = res.cons((EObject) s.first());
    }   
    return res.reverse();
  }
View Full Code Here

Examples of com.trifork.clj_ds.IPersistentCollection.seq()

   
    IPersistentMap map = deref();
    IPersistentCollection coll = (IPersistentCollection) map.valAt(key);
    if (coll == null) return ERT.NIL;
   
    return matcher.match_vars(ERT.NIL, coll.seq()).reverse();
  }
 

  @SuppressWarnings("rawtypes")
  @Override
View Full Code Here

Examples of com.trifork.clj_ds.IPersistentCollection.seq()

   
    IPersistentMap map = deref();
    IPersistentCollection coll = (IPersistentCollection) map.valAt(key);
    if (coll == null) return ERT.NIL;
   
    return matcher.match_members(ERT.NIL, coll.seq()).reverse();
  }

  @Override
  protected void delete(final EObject key) {
    in_tx(new WithMap<Object>() {
View Full Code Here

Examples of com.trifork.clj_ds.IPersistentCollection.seq()

    } else {
      IPersistentCollection coll = (IPersistentCollection) map.valAt(key);
      if (coll == null) {
        return Native.am_$end_of_table;       
      } else {
        EBagCont cont0 = new EBagCont(matcher, null, coll.seq(), limit);
        return cont0.select();
      }
    }
   
  }
View Full Code Here

Examples of com.trifork.clj_ds.IPersistentCollection.seq()

        if (key == null) {
          vals = matcher.matching_values_bag(vals, (Map<EObject, IPersistentCollection>) map);
        } else {
          IPersistentCollection coll = (IPersistentCollection) map.valAt(key);
          if (coll != null) {
            vals = matcher.matching_values_coll(vals, coll.seq());
          }
        }
       
        int count = 0;
        for (; !vals.isNil(); vals = vals.tail()) {
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.