| 26 | } |
| 27 | |
| 28 | public 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 | |
| 52 | public int compare(Object o1, Object o2){ |
| 53 | Object o = invoke(o1, o2); |