I am trying to understand this function:
(defn mat-eq
"Checks if two matrices are equal"
[A B]
(and (= (count A) (count B))
(reduce #(and %1 %2) (map = A B))))
"We first compare the row lenghts of the two matrices using the count and = functions, and then use the reduce function to compare the inner vector elements." I dont understand this part: "Essentially, the reduce function repeatedly applies a function that accepts two arguments to consecutive elements in a sequence and returns the final result when all the elements in the sequence have been reduced by the applied function." Can somebody explain this part: (reduce #(and %1 %2) (map = A B))