progs/pow.scala
changeset 572 4a1739f256fd
parent 564 b5d57d7064bb
child 577 7a437f1f689d
--- a/progs/pow.scala	Wed Oct 03 13:37:11 2018 +0100
+++ b/progs/pow.scala	Fri Oct 05 11:07:57 2018 +0100
@@ -10,6 +10,7 @@
 pow(A, 4).size                            // -> 256
 
 val B = Set("a", "b", "c", "")
+pow(B, 4)
 pow(B, 4).size                            // -> 121
 
 
@@ -25,15 +26,15 @@
 pow(C, 3).size                            // -> 15
 
 
-val A = Set("a", "b", "c", "d")
-pow(A, 4).size   
+//val A = Set("a", "b", "c", "d")
+//pow(A, 4).size   
 
-val A = Set("a", "b", "c")
-pow(A, 5).size   
+//val A = Set("a", "b", "c")
+//pow(A, 5).size   
 
-val A = Set("a", "b", "")
-pow(A, 5).size   
+//val A = Set("a", "b", "")
+//pow(A, 5).size   
 
 
-for (n <- (0 to 12).toList) 
-  yield pow(A, n).size
\ No newline at end of file
+for (n <- (0 to 6).toList) 
+  yield pow(B, n).size