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

Method applyTo

src/jvm/clojure/lang/RestFn.java:132–394  ·  view source on GitHub ↗
(ISeq args)

Source from the content-addressed store, hash-verified

130
131
132public Object applyTo(ISeq args) {
133 if(RT.boundedLength(args, getRequiredArity()) <= getRequiredArity())
134 {
135 return AFn.applyToHelper(this, Util.ret1(args,args = null));
136 }
137 switch(getRequiredArity())
138 {
139 case 0:
140 return doInvoke(Util.ret1(args,args = null));
141 case 1:
142 return doInvoke(args.first()
143 , Util.ret1(args.next(),args=null));
144 case 2:
145 return doInvoke(args.first()
146 , (args = args.next()).first()
147 , Util.ret1(args.next(),args=null));
148 case 3:
149 return doInvoke(args.first()
150 , (args = args.next()).first()
151 , (args = args.next()).first()
152 , Util.ret1(args.next(),args=null));
153 case 4:
154 return doInvoke(args.first()
155 , (args = args.next()).first()
156 , (args = args.next()).first()
157 , (args = args.next()).first()
158 , Util.ret1(args.next(),args=null));
159 case 5:
160 return doInvoke(args.first()
161 , (args = args.next()).first()
162 , (args = args.next()).first()
163 , (args = args.next()).first()
164 , (args = args.next()).first()
165 , Util.ret1(args.next(),args=null));
166 case 6:
167 return doInvoke(args.first()
168 , (args = args.next()).first()
169 , (args = args.next()).first()
170 , (args = args.next()).first()
171 , (args = args.next()).first()
172 , (args = args.next()).first()
173 , Util.ret1(args.next(),args=null));
174 case 7:
175 return doInvoke(args.first()
176 , (args = args.next()).first()
177 , (args = args.next()).first()
178 , (args = args.next()).first()
179 , (args = args.next()).first()
180 , (args = args.next()).first()
181 , (args = args.next()).first()
182 , Util.ret1(args.next(),args=null));
183 case 8:
184 return doInvoke(args.first()
185 , (args = args.next()).first()
186 , (args = args.next()).first()
187 , (args = args.next()).first()
188 , (args = args.next()).first()
189 , (args = args.next()).first()

Callers

nothing calls this directly

Calls 8

boundedLengthMethod · 0.95
getRequiredArityMethod · 0.95
applyToHelperMethod · 0.95
ret1Method · 0.95
doInvokeMethod · 0.95
firstMethod · 0.65
nextMethod · 0.65
throwArityMethod · 0.45

Tested by

no test coverage detected