progs/pow.scala
changeset 577 7a437f1f689d
parent 572 4a1739f256fd
child 618 f4818c95a32e
equal deleted inserted replaced
576:550186034b6e 577:7a437f1f689d
    36 //pow(A, 5).size   
    36 //pow(A, 5).size   
    37 
    37 
    38 
    38 
    39 for (n <- (0 to 6).toList) 
    39 for (n <- (0 to 6).toList) 
    40   yield pow(B, n).size
    40   yield pow(B, n).size
       
    41 
       
    42 
       
    43 
       
    44 
       
    45 
       
    46 val A = Set("a", "b", "c")
       
    47 pow(A, 3)
       
    48 
       
    49 val B = Set("a", "b", "")
       
    50 pow(B, 4)