Data update
This commit is contained in:
parent
5150844a7d
commit
4bb20c9b71
7735 changed files with 38060 additions and 199180 deletions
|
|
@ -1,13 +1,6 @@
|
|||
(defun transpose (matrix)
|
||||
(transpose matrix '()))
|
||||
|
||||
(defun transpose (matrix acc)
|
||||
(cond
|
||||
((lists:any
|
||||
(lambda (x) (== x '()))
|
||||
matrix)
|
||||
acc)
|
||||
('true
|
||||
(let ((heads (lists:map #'car/1 matrix))
|
||||
(tails (lists:map #'cdr/1 matrix)))
|
||||
(transpose tails (++ acc `(,heads)))))))
|
||||
(defun transpose
|
||||
((`(() . ,_))
|
||||
'())
|
||||
((matrix)
|
||||
(cons (lists:map #'car/1 matrix)
|
||||
(transpose (lists:map #'cdr/1 matrix)))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue