소스 검색

minor formatting change

George C. Privon 6 년 전
부모
커밋
89f351be45
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      chap1/comp1/simpleGA.rkt

+ 4 - 4
chap1/comp1/simpleGA.rkt

@@ -49,10 +49,10 @@
 ; check mutation rate
 ; return the number of members that are different between pop1 and pop2
 (define (mcheck pop1 pop2)
-     (for/list ([i (length pop1)])
-       (if (eq? (list-ref pop1 i) (list-ref pop2 i))
-           0
-           1)))
+  (for/list ([i (length pop1)])
+    (if (eq? (list-ref pop1 i) (list-ref pop2 i))
+        0
+        1)))
 
 ; testing/debugging code below
 (define pop (initpop))