MCPcopy Index your code
hub / github.com/clojure/clojure / withMeta

Method withMeta

src/jvm/clojure/lang/AFunction.java:28–50  ·  view source on GitHub ↗
(final IPersistentMap meta)

Source from the content-addressed store, hash-verified

26}
27
28public IObj withMeta(final IPersistentMap meta){
29 if(meta == null)
30 return this;
31 return new RestFn(){
32 protected Object doInvoke(Object args) {
33 return AFunction.this.applyTo((ISeq) args);
34 }
35
36 public IPersistentMap meta(){
37 return meta;
38 }
39
40 public IObj withMeta(IPersistentMap newMeta){
41 if(meta == newMeta)
42 return this;
43 return AFunction.this.withMeta(newMeta);
44 }
45
46 public int getRequiredArity(){
47 return 0;
48 }
49 };
50}
51
52public int compare(Object o1, Object o2){
53 Object o = invoke(o1, o2);

Callers

nothing calls this directly

Calls 1

withMetaMethod · 0.65

Tested by

no test coverage detected