Never mind, we have figured it out: using s/* gives us the argument number in the "in" part of "explain".
Elena On Thursday, June 23, 2016 at 10:41:27 AM UTC-5, Elena Machkasova wrote: > > I am trying to use a combination of fdef and instrument in spec, and I was > wondering if there is a way to apply a condition to each of the :args and > be able to report the argument number on which the precondition fails. For > instance, we require all args (in a function with a variable number of > arguments) to be numbers, and get the message that says that the third > argument has failed this condition. > > Thanks! > > Elena > > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
