Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/clojure/clojure
/ setValidator
Method
setValidator
src/jvm/clojure/lang/Var.java:208–212 ·
view source on GitHub ↗
(IFn vf)
Source
from the content-addressed store, hash-verified
206
}
207
208
public
void
setValidator(IFn vf){
209
if
(hasRoot())
210
validate(vf, root);
211
validator = vf;
212
}
213
214
public
Object alter(IFn fn, ISeq args) {
215
set(fn.applyTo(RT.cons(deref(), args)));
Callers
nothing calls this directly
Calls
2
hasRoot
Method · 0.95
validate
Method · 0.80
Tested by
no test coverage detected