I'm defining a function ("my-function" below) making use of three lists. It checks if those three lists satisfy a certain condition and then do something more. This condition is to have length 2 (I suspect this is not important but I prefer to mention it). Therefore, it has the form:
(define my-function (lambda (list1 list2 list3)
(cond
[(and (= (length list1) 2) (= (length list2) 2) (= (length list3) 2))...
My question is: how could I generalize "my-function" to a number of lists?
More generally: is there a way to index the lists into the input of the function and then call them one-by-one to check the condition?