Package clojure.lang

Examples of clojure.lang.Var.deref()


  @Override
  public Environment compute(Environment e, IPersistentMap bindings) {
    try {
      Var v=RT.var(sym.getNamespace(),sym.getName());
      if (v!=null) return e.withResult(v.deref());
    } catch (Throwable t) {
      String err="Error trying to lookp var "+sym+" ";
      err+=" with Environment "+e.toString();
      throw new KissException(err,t);
    }
View Full Code Here


  public Object toVar() {
    Var ret = Util.getVar(_namespace, _name);
    if (!hofArgs.isEmpty())
      return ret.applyTo(Util.coerceToSeq(hofArgs));
    else
      return ret.deref();
  }
}
View Full Code Here

  public static List SENTENCE = getDataset("sentence");


  private static List getDataset(String name) {
    Var v = Util.getVar("cascalog.playground", name);
    return (List) v.deref();
  }
}
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.