Last active
October 20, 2016 22:34
-
-
Save frozencemetery/ce8d8d7abec2d55a3a9479b3cfbdc276 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defvar printed-p nil) | |
(defun has_nonzero (row) | |
(eq 0 (reduce #'logior row))) | |
(loop for row in X | |
for i from 0 | |
while (not printed-p) do | |
(if (has_nonzero row) | |
(progn (print i) | |
(setf printed-p T)))) | |
(defvar printed-p nil ) | |
(defun has_nonzero (row ) | |
(eq 0 (reduce #'logior row ))) | |
(loop for row in X | |
for i from 0 | |
while (not printed-p) do | |
(if (has_nonzero row ) | |
(progn (print i ) | |
(setf printed-p T )))) | |
( | |
defvar printed-p nil) ( | |
defun has_nonzero (row) ( | |
eq 0 (reduce #'logior row) ))( | |
loop for row in X | |
for i from 0 | |
while (not printed-p) do ( | |
if (has_nonzero row) ( | |
progn (print i) ( | |
setf printed-p T )))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment