progs/pow.scala
changeset 397 cf3ca219c727
parent 365 9b71dead1219
child 471 9476086849ad
equal deleted inserted replaced
396:4cd75c619e06 397:cf3ca219c727
    10 pow(A, 4).size                            // -> 256
    10 pow(A, 4).size                            // -> 256
    11 
    11 
    12 val B = Set("a", "b", "c", "")
    12 val B = Set("a", "b", "c", "")
    13 pow(B, 4).size                            // -> 121
    13 pow(B, 4).size                            // -> 121
    14 
    14 
       
    15 val B2 = Set("a", "b", "c", "")
       
    16 pow(B2, 3).size                           // -> 40
       
    17 
    15 val C = Set("a", "b", "")
    18 val C = Set("a", "b", "")
    16 pow(C, 2)
    19 pow(C, 2)
    17 pow(C, 2).size                            // -> 7
    20 pow(C, 2).size                            // -> 7
    18 
    21 
    19 pow(C, 3)
    22 pow(C, 3)