Examples of IPersistentSet


Examples of clojure.lang.IPersistentSet

  @Override
  public Expression optimise() {
    Expression b=body.optimise();
    Expression v=value.optimise();
    if (value.isPure()) {
      IPersistentSet bfree= b.accumulateFreeSymbols(PersistentHashSet.EMPTY);
      if (!(bfree.contains(sym))) {
        return b;
      }
      if (value.isConstant()) {
        return b.substitute(PersistentHashMap.EMPTY.assoc(sym,value.eval())).optimise();
      }
View Full Code Here

Examples of com.trifork.clj_ds.IPersistentSet

            ETuple val = (ETuple) vals.head();
            key = val.elm(keypos1);
            IPersistentCollection coll = (IPersistentCollection) map.valAt(key);

            if (coll instanceof IPersistentSet) {
              IPersistentSet set = (IPersistentSet) coll;
              set = set.disjoin(val);
              if (set != coll) {
                count += 1;
              if (set.count() == 0) {
                map = map.without(key);
              } else {
                map = map.assoc(key, set);
              }
              }
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.